selinux_inode_permission(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– selinux_inode_permission(9) πŸ’–

okay bestie, this is the Kernel API Manual page for selinux_inode_permission(9) β€” yes the title is a whole mouthful but we move. It’s all about the vibe check for inode access. 🫢


🌸 NAME 🌸

selinux_inode_permission β€” check if the current task can access an inode. Like, permission-wise. Obviously. πŸ’…

✨ SYNOPSIS ✨

int selinux_inode_permission (struct inode *inode , int requested );

πŸŽ€ ARGUMENTS πŸŽ€

  • inode β€” the inode that is being accessed. that’s the thing being checked, bestie. πŸ¦‹
  • requested β€” the accesses being requested. aka what access is being asked for. ✨

πŸ’… DESCRIPTION πŸ’…

Check if the current task is allowed to access inode according to requested. That’s it, that’s the whole plot. πŸ‘‘

Returns 0 if allowed, negative values otherwise. So 0 is the slay βœ…, negative values are the nope 😭. No cap.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./security/selinux/hooks.c


mwah πŸ’‹ this cutie comes from ./security/selinux, dated October 2026, and the page is selinux_inode_permission(9). bye bestie! 🌈

πŸ“¦ where this page comes from