selinux_inode_xattr_skipcap(9)
π selinux_inode_xattr_skipcap β like, the Kernel API Manual page, bestie
okay so welcome to the selinux_inode_xattr_skipcap page, part of the Kernel API Manual β yes it's a mouthful, no you don't have to say it out loud at parties π
β¨ NAME β¨
selinux_inode_xattr_skipcap β Skip the xattr capability checks?
Like... should we skip them? That's literally the whole question. Vibe check incoming π
πΈ SYNOPSIS πΈ
int selinux_inode_xattr_skipcap (const char *name );
that's it, that's the whole signature, she's lowkey elegant π¦
π«Ά ARGUMENTS π«Ά
nameβ name of the xattr. yep. just the name. the name of the xattr. icon behavior honestly π
π₯ DESCRIPTION π₯
okay so here's the tea β β this function returns 1 to indicate that SELinux "owns" the access control rights to xattrs named name; the LSM layer should avoid enforcing any traditional capability based access controls on this xattr. no cap, that's what the 1 means π«‘
and it returns 0 to indicate that SELinux does not "own" the access control rights to xattrs named name, and is deferring to the LSM layer for further access controls, including capability based controls. so like, she's handing the aux cord over π§
fr fr the return value is the whole point here β1= SELinux is the main character for this xattr,0= SELinux is stepping back and letting the LSM layer run the group chat π
π SEE ALSO π
Kernel file ./security/selinux/hooks.c plus this whole friend group:
selinux_secmark_enabled(9)selinux_peerlbl_enabled(9)task_avdcache_reset(9)task_avdcache_search(9)task_avdcache_update(9)selinux_inode_permission(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)
go read them all, bestie, they're all slay in their own way π
alright that's the page!! source and version moment: this cutie lives under ./security/selinux and it's dated October 2026 β mwah, stan her, periodt πβ¨π
π¦ 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