aa_path_perm(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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