avc_audit(9)
π avc_audit(9) β Kernel API Manual π
okay so this is the glow-up of the avc_audit page, bestie. Itβs from the Kernel API Manual, and itβs literally about auditing permissions. Periodt.
πΈ NAME πΈ
avc_audit β Audit the granting or denial of permissions. Thatβs the whole vibe: it audits whether permissions get granted or denied. No cap.
β¨ SYNOPSIS β¨
int avc_audit (u32 ssid , u32 tsid , u16 tclass , u32 requested , struct
av_decision *avd , int result , struct common_audit_data *a );
The return type is int, bestie. The signature is giving βI take a bunch of IDs and decisions and I audit themβ energy.
π ARGUMENTS π
ssidβ source security identifier. Like, the security ID for the source, obvi.tsidβ target security identifier. The security ID for the target. Slay.tclassβ target security class. The class of the target, exactly.requestedβ requested permissions. The permissions being asked for, fr fr.avdβ access vector decisions. The decisions live here, iconic.resultβ result fromavc_has_perm_noaudit. Not me stressing that exact source, but yes, thatβs where it comes from.aβ auxiliary audit data. Extra audit data, the supporting character.
π¦ DESCRIPTION π¦
Audit the granting or denial of permissions in accordance with the policy. Okay so itβs doing the audit based on the policy, no cap.
This function is typically called by avc_has_perm after a permission check, but it can also be called directly by callers who use avc_has_perm_noaudit in order to separate the permission check from the auditing. The way that separation works is lowkey the whole point for those callers: permission check over here, auditing over there, bestie.
For example, this separation is useful when the permission check must be performed under a lock, to allow the lock to be released before calling the auditing code. Literally the lock can be released before the auditing code runs, and thatβs why this split is useful. Main character energy for lock hygiene, honestly.
π SEE ALSO π
- Kernel file
./security/selinux/include/avc.hβ thatβs the reference path, bestie. Go look if you need the header vibes. π
π okay bye bestie! this page is avc_audit(9) from the Kernel API Manual; source/version: ./security/selinux/include; Kernel file: ./security/selinux/include/avc.h; date: October 2026. it ate, no cap. π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms