Lines Matching refs:scontext
698 char *scontext = NULL; in avc_audit_post_callback() local
705 rc = security_sid_to_context(sad->ssid, &scontext, in avc_audit_post_callback()
710 audit_log_format(ab, " scontext=%s", scontext); in avc_audit_post_callback()
725 trace_selinux_audited(sad, scontext, tcontext, tclass); in avc_audit_post_callback()
727 kfree(scontext); in avc_audit_post_callback()
730 rc = security_sid_to_context_inval(sad->ssid, &scontext, in avc_audit_post_callback()
732 if (!rc && scontext) { in avc_audit_post_callback()
733 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback()
736 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback()
737 kfree(scontext); in avc_audit_post_callback()
740 rc = security_sid_to_context_inval(sad->tsid, &scontext, in avc_audit_post_callback()
742 if (!rc && scontext) { in avc_audit_post_callback()
743 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback()
746 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback()
747 kfree(scontext); in avc_audit_post_callback()