aa_check_perms(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to aa_check_perms(9) β€” this one lives in the Kernel API Manual, and it's literally the function that does audit mode selection based on the perms set. πŸ’…

πŸ’– NAME πŸ’–

aa_check_perms β€” do audit mode selection based on perms set

✨ SYNOPSIS ✨

int aa_check_perms (struct aa_profile *profile , const struct aa_perms *perms , u32 request , struct apparmor_audit_data *ad , void (*cb)(struct audit_buffer *, void *) );

🫢 ARGUMENTS 🫢

  • profile β€” the profile being checked πŸ‘‘
  • perms β€” perms computed for the request πŸŽ€
  • request β€” requested perms ✨
  • ad β€” initialized audit structure (MAY BE NULL if not auditing) πŸ™ˆ
  • cb β€” callback fn for type specific fields (MAY BE NULL) πŸ¦‹

πŸŽ€ RETURN πŸŽ€

0 if permission, else error code. periodt. πŸ’―

πŸ’… NOTE πŸ’…

profile audit modes need to be set before calling by setting the perm masks appropriately. no cap, that's the setup vibe. 🧚

If not auditing then complain mode is not enabled and the error code will indicate whether there was an explicit deny with a positive value. so yeah, the error code is giving you the tea. β˜•

🌈 SEE ALSO 🌈


This page made its way to you from ./security/apparmor, dated October 2026, and it's the aa_check_perms(9) manual page. bye bestie, ily πŸ’–πŸ«Ά

πŸ“¦ where this page comes from