common_perm_cond(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– common_perm_cond(9) πŸ’–

okay bestie, welcome to the Kernel API Manual ✨ this is common_perm_cond, and honestly it's lowkey the permission bouncer of the inode world 🫢 it's the common permission wrapper around inode cond, periodt.


🌸 NAME 🌸

common_perm_cond β€” the common permission wrapper around inode cond πŸ’… like, it wraps the permission check so you don't have to, iykyk.


✨ SYNOPSIS ✨

int common_perm_cond (const char *op , const struct path *path , u32
mask );

πŸŽ€ ARGUMENTS πŸŽ€

  • op β€” the operation being checked πŸ‘€ literally the "what are we even doing here" string.
  • path β€” the location to check, and bestie this one is NOT NULL 🚨 like do not come for this function with a NULL path, it's not the vibe.
  • mask β€” the requested permissions mask πŸ”₯ the actual list of perms you're asking for.

πŸ’€ RETURN πŸ’€

0 if you're slaying βœ… β€” otherwise an error code if there's an error or permission was denied πŸ™ˆ no in-between, no wiggle room.


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./security/apparmor/lsm.c and it's the main character here πŸ‘‘ β€” go read these too, they're all part of the same friend group:


ngl bestie, remember: path is NOT NULL. that's not a suggestion, that's the whole vibe check. πŸ’…

okay that's the page!! πŸŽ€ this one came from ./security/apparmor 🌈, dated October 2026 ⭐ β€” mwah, go touch some inodes, ily πŸ«ΆπŸ’–πŸ§š

πŸ“¦ where this page comes from