security_netif_sid(9)
π security_netif_sid π
okay so bestie, welcome to the Kernel API Manual entry for security_netif_sid β yes that's the whole title, and yes it's a (9) page, meaning it's a kernel-internals situation, not your usual "how do I list files" moment. This one's short and sweet: it's literally just "hey, what's the SID for this network interface?" β¨
πΈ NAME πΈ
security_netif_sid β obtain the SID for a network interface. that's it, that's the whole job. no cap. π
π¦ SYNOPSIS π¦
int security_netif_sid (const char *name , u32 *if_sid );
like, look at that. three tokens of pure main-character energy. π
β¨ ARGUMENTS β¨
nameβ the interface name, bestie. it's aconst char *, so it's just lookin' at the string, not touching it. π«Άif_sidβ the interface SID. it's au32 *, so this is where the answer gets written back. lowkey the whole point. π
π SEE ALSO π
okay this is the part where the page goes absolutely feral with cross-references, and i am not skipping a single one, because the way that this list just keeps going is honestly iconic. π₯
first up, the kernel file itself:
Kernel file ./security/selinux/ss/services.c
and then the whole friend group:
security_compute_av(9)security_sid_to_context(9)security_sid_to_context_inval(9)security_context_to_sid(9)security_context_to_sid_default(9)security_transition_sid(9)security_member_sid(9)security_change_sid(9)services_convert_context(9)security_load_policy(9)ocontext_to_sid(9)security_port_sid(9)security_ib_pkey_sid(9)security_ib_endport_sid(9)security_node_sid(9)__security_genfs_sid(9)security_genfs_sid(9)security_fs_use(9)security_net_peersid_resolve(9)security_policycap_supported(9)security_netlbl_cache_add(9)security_netlbl_secattr_to_sid(9)security_netlbl_sid_to_secattr(9)__security_read_policy(9)security_read_policy(9)security_read_state_kernel(9)
likeβ¦ twenty-six siblings. twenty-six!! a whole extended family of SID-related manpages and this one is just the netif one. iykyk. ππ
oh and btw β the double-underscore ones (__security_genfs_sid(9),__security_read_policy(9)) are not typos, that's literally their names, so copy them exactly if you're grepping. π
that's the whole page, bestie β short, specific, and extremely on brand. π§
this lil writeup is straight outta the ./security/selinux/ss corner of the kernel and it's dated October 2026, so go forth and get your interface SIDs, you gorgeous nerd. slay. πβπΈπ
π¦ 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