sel_netnode_sid(9)
π
sel_netnode_sid (9) β like, the Kernel API Manual, bestie β¨
okay so we're deep in the kernel docs rn, specifically the sel_netnode_sid page from the Kernel API Manual, and honestly? it's a little baddie π
πΈ NAME πΈ
sel_netnode_sid β Lookup the SID of a network address π no cap, that's literally the whole job
β¨ SYNOPSIS β¨
int sel_netnode_sid (const void *addr , u16 family , u32 *sid );
like yes, that's the whole signature, don't @ me π«Ά
π¦ ARGUMENTS π¦
addrβ the IP address, the main character of this lil function frfamilyβ the address family, iykyk πsidβ node SID, that's the output bestie π
π DESCRIPTION π
okay so here's the vibe: this function determines the SID of a network address using the fastest method possible. β‘ highkey efficient, we love to see it.
here's how it goes down:
- First the address table is queried π
- but if an entry can't be found, then the policy is queried π§
- and the result is added to the table to speedup future queries π₯ self-improving queen behaviour honestly
Returns zero on success, negative values on failure. π that's the whole return contract, no notes.
π SEE ALSO π
Kernel file ./security/selinux/netnode.c and its whole friend group π
:
sel_netnode_hashfn_ipv4(9)sel_netnode_hashfn_ipv6(9)sel_netnode_find(9)sel_netnode_insert(9)sel_netnode_sid_slow(9)sel_netnode_flush(9)
π quick vibe check: sel_netnode_sid_slow(9) is right there in the see-also list, so yes, there IS a slow version, and yes, this page is the fast one. slay.
that's the whole page bestie, mwah π
sign-off szn π β this cutie lives under ./security/selinux, dated October 2026, per the Kernel API Manual. 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