security_node_sid(9)
πΈ security_node_sid(9) β like, the whole manual page, bestie πΈ
Okay so this is security_node_sid(9) from the Kernel API Manual, and it's genuinely one of the shorter ones β a little baby page, but it still ate. Let's get into it π«Ά
β¨ NAME β¨
security_node_sid β the function that gets you the SID for a node (host). That's it. That's the whole vibe. π
π SYNOPSIS π
int security_node_sid (u16 domain , const void *addrp , u32 addrlen ,
u32 *out_sid );
Look at her. Four params, returns an int, absolutely iconic behaviour. β¨
π¦ ARGUMENTS π¦
domainβ the communication domain, a.k.a. the address family. Basically "what kind of address are we even talking about here" πaddrpβ the address itself. Just aconst void *, so she's flexible, she contains multitudes πaddrlenβ how long that address is, in bytes. Don't lie about this one, fr fr πout_sidβ the security identifier that comes back out. This is where the good stuff lands π
ngl the whole thing is four lines of docs and I respect the restraint. lowkey legendary.
π SEE ALSO π
The kernel file in question is ./security/selinux/ss/services.c β that's the main character energy right there, no cap. And here's the whole group chat of related pages, every single one, because we do not skip anyone in this house π
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_netif_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)
That's the entire ./security/selinux/ss crew and they all said hi π¦
Signed, sealed, delivered β this page lives in ./security/selinux/ss, dated October 2026, and answers to the name security_node_sid(9). mwah πβ¨
π¦ 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