Lines Matching refs:scontext
711 char *scontext = NULL; in avc_audit_post_callback() local
718 rc = security_sid_to_context(sad->state, sad->ssid, &scontext, in avc_audit_post_callback()
723 audit_log_format(ab, " scontext=%s", scontext); in avc_audit_post_callback()
738 trace_selinux_audited(sad, scontext, tcontext, tclass); in avc_audit_post_callback()
740 kfree(scontext); in avc_audit_post_callback()
743 rc = security_sid_to_context_inval(sad->state, sad->ssid, &scontext, in avc_audit_post_callback()
745 if (!rc && scontext) { in avc_audit_post_callback()
746 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback()
749 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback()
750 kfree(scontext); in avc_audit_post_callback()
753 rc = security_sid_to_context_inval(sad->state, sad->tsid, &scontext, in avc_audit_post_callback()
755 if (!rc && scontext) { in avc_audit_post_callback()
756 if (scontext_len && scontext[scontext_len - 1] == '\0') in avc_audit_post_callback()
759 audit_log_n_untrustedstring(ab, scontext, scontext_len); in avc_audit_post_callback()
760 kfree(scontext); in avc_audit_post_callback()