Lines Matching refs:avc_audit_buf
57 static char *avc_audit_buf = NULL; variable
183 avc_audit_buf = (char *)avc_malloc(AVC_AUDIT_BUFSIZE); in avc_init_internal()
184 if (!avc_audit_buf) { in avc_init_internal()
263 sidtab_sid_stats(&avc_sidtab, avc_audit_buf, AVC_AUDIT_BUFSIZE); in avc_sid_stats()
265 avc_log(SELINUX_INFO, "%s", avc_audit_buf); in avc_sid_stats()
579 avc_free(avc_audit_buf); in avc_destroy()
651 log_append(avc_audit_buf, " null"); in avc_dump_av()
655 log_append(avc_audit_buf, " {"); in avc_dump_av()
662 log_append(avc_audit_buf, " %s", permstr); in avc_dump_av()
669 log_append(avc_audit_buf, " 0x%x", av); in avc_dump_av()
670 log_append(avc_audit_buf, " }"); in avc_dump_av()
684 log_append(avc_audit_buf, "scontext=%s tcontext=%s", in avc_dump_query()
688 log_append(avc_audit_buf, " tclass=%s", in avc_dump_query()
713 snprintf(avc_audit_buf, AVC_AUDIT_BUFSIZE, in avc_audit()
716 log_append(avc_audit_buf, " for "); in avc_audit()
719 avc_suppl_audit(a, tclass, avc_audit_buf + strlen(avc_audit_buf), in avc_audit()
720 AVC_AUDIT_BUFSIZE - strlen(avc_audit_buf)); in avc_audit()
722 log_append(avc_audit_buf, " "); in avc_audit()
726 log_append(avc_audit_buf, " permissive=%u", result ? 0 : 1); in avc_audit()
728 log_append(avc_audit_buf, "\n"); in avc_audit()
729 avc_log(SELINUX_AVC, "%s", avc_audit_buf); in avc_audit()