audit_resource(9)
β¨ 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β theaa_albelof 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
- 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