audit_resource(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to audit_resource(9) from the Kernel API Manual β€” the whole vibe is audit_resource: audit setting resource limit. No cap, it's literally about auditing the setting of a resource limit. πŸ’…

πŸ”₯ SYNOPSIS πŸ”₯

here's the exact signature, character-for-character, don't @ me:

       int audit_resource (const struct cred *subj_cred , struct aa_profile
       *profile , unsigned int resource , unsigned long value , struct aa_label
       *peer , const char *info , int error );

πŸŽ€ ARGUMENTS πŸŽ€

  • subj_cred β€” the cred that's setting the resource. 🫢
  • profile β€” the profile being enforced (NOT NULL, bestie β€” do not come in here with a null profile 😭).
  • resource β€” the rlimit being audited. πŸ‘€
  • value β€” the value being set. ✨
  • peer β€” the aa_albel of the task being set. πŸ¦‹
  • info β€” the info being audited. 🌸
  • error β€” the error value. πŸ’€

πŸ’– RETURN πŸ’–

It gives you 0 or ad->error, else a different error code on failure. periodt. πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

the kernel file is literally ./security/apparmor/resource.c, and these are the cross-refs you can go snoop:


okay bye bestie β€” this iconic page came from ./security/apparmor, dated October 2026, and it's still audit_resource(9) at heart. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from