selinux_inode_permission(9)
π 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
selinux_secmark_enabled(9)selinux_peerlbl_enabled(9)task_avdcache_reset(9)task_avdcache_search(9)task_avdcache_update(9)selinux_inode_xattr_skipcap(9)selinux_mmap_backing_file(9)selinux_skb_peerlbl_sid(9)selinux_conn_sid(9)selinux_getselfattr(9)selinux_uring_override_creds(9)selinux_uring_sqpoll(9)selinux_uring_cmd(9)selinux_uring_allowed(9)
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
- 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