Lines Matching refs:sad
669 struct selinux_audit_data *sad = ad->selinux_audit_data; in avc_audit_pre_callback() local
670 u32 av = sad->audited; in avc_audit_pre_callback()
674 audit_log_format(ab, "avc: %s ", sad->denied ? "denied" : "granted"); in avc_audit_pre_callback()
681 perms = secclass_map[sad->tclass-1].perms; in avc_audit_pre_callback()
710 struct selinux_audit_data *sad = ad->selinux_audit_data; in avc_audit_post_callback() local
718 rc = security_sid_to_context(sad->state, sad->ssid, &scontext, in avc_audit_post_callback()
721 audit_log_format(ab, " ssid=%d", sad->ssid); in avc_audit_post_callback()
725 rc = security_sid_to_context(sad->state, sad->tsid, &tcontext, in avc_audit_post_callback()
728 audit_log_format(ab, " tsid=%d", sad->tsid); in avc_audit_post_callback()
732 tclass = secclass_map[sad->tclass-1].name; in avc_audit_post_callback()
735 if (sad->denied) in avc_audit_post_callback()
736 audit_log_format(ab, " permissive=%u", sad->result ? 0 : 1); in avc_audit_post_callback()
738 trace_selinux_audited(sad, scontext, tcontext, tclass); in avc_audit_post_callback()
743 rc = security_sid_to_context_inval(sad->state, sad->ssid, &scontext, in avc_audit_post_callback()
753 rc = security_sid_to_context_inval(sad->state, sad->tsid, &scontext, in avc_audit_post_callback()
775 struct selinux_audit_data sad; in slow_avc_audit() local
785 sad.tclass = tclass; in slow_avc_audit()
786 sad.requested = requested; in slow_avc_audit()
787 sad.ssid = ssid; in slow_avc_audit()
788 sad.tsid = tsid; in slow_avc_audit()
789 sad.audited = audited; in slow_avc_audit()
790 sad.denied = denied; in slow_avc_audit()
791 sad.result = result; in slow_avc_audit()
792 sad.state = state; in slow_avc_audit()
794 a->selinux_audit_data = &sad; in slow_avc_audit()