aa_audit_file(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ aa_audit_file(9) πŸŽ€

okay so bestie, this page is from the Kernel API Manual and it is literally about handling the auditing of file operations. no cap, it's giving kernel-security main character energy.


✨ NAME ✨

aa_audit_file β€” handle the auditing of file operations

🌸 SYNOPSIS 🌸

int aa_audit_file (const struct cred *subj_cred , struct aa_profile *profile , const struct aa_perms *perms , const char *op , u32 request , const char *name , const char *target , struct aa_label *tlabel , kuid_t ouid , const char *info , int error );

🧚 ARGUMENTS 🧚

  • subj_cred β€” cred of the subject πŸ’–
  • profile β€” the profile being enforced (NOT NULL) πŸ‘‘
  • perms β€” the permissions computed for the request (NOT NULL) ✨
  • op β€” operation being mediated
  • request β€” permissions requested
  • name β€” name of object being mediated (MAYBE NULL)
  • target β€” name of target (MAYBE NULL)
  • tlabel β€” target label (MAY BE NULL)
  • ouid β€” object uid
  • info β€” extra information message (MAYBE NULL)
  • error β€” 0 if operation allowed else failure error code πŸ’…

πŸ’… RETURN πŸ’…

0 or error on failure β€” that's the whole vibe check 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

bestie, go peek at the Kernel file ./security/apparmor/file.c and these icons: file_audit_cb(9), aa_lookup_condperms(9), aa_str_perms(9), aa_path_perm(9), xindex_is_subset(9), aa_path_link(9), aa_file_perm(9). 🌈


mwah πŸ’‹ signing off from ./security/apparmor with the October 2026 date, bestie πŸŽ€

πŸ“¦ where this page comes from