aa_path_perm(9)
π NAME β aa_path_perm(9) in the Kernel API Manual π
okay so bestie, aa_path_perm is literally the do permissions check & audit function for @path. That's the whole vibe: aa_path_perm β do permissions check & audit for @path. Periodt. β¨
π SYNOPSIS π
int aa_path_perm (const char *op , const struct cred *subj_cred , struct
aa_label *label , const struct path *path , int flags , u32 request ,
struct path_cond *cond );
π ARGUMENTS π
opβ the operation being checked, bestie. πsubj_credβ the subject cred. π«Άlabelβ the profile being enforced (NOT NULL) β no cap, it has to be there. πpathβ path to check permissions of (NOT NULL). π£οΈflagsβ any additional path flags beyond what the profile specifies. π©requestβ requested permissions. πcondβ conditional info for this request (NOT NULL). π§
πΈ RETURN πΈ
Returns 0, else error if access denied or other error. That's it. π
π¦ SEE ALSO π¦
Kernel file ./security/apparmor/file.c: file_audit_cb(9), aa_audit_file(9), aa_lookup_condperms(9), aa_str_perms(9), xindex_is_subset(9), aa_path_link(9), aa_file_perm(9). Go read these if you're nosy β iykyk. π
π cute sign-off: this lil page comes from source/version ./security/apparmor, dated October 2026, and it's aa_path_perm(9) β periodt, bestie. π«Άβ¨
π¦ 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