sel_ib_pkey_sid_slow(9)
β¨ sel_ib_pkey_sid_slow(9) β¨
okay so this is a page from the Kernel API Manual bestie, and it's literally all about sel_ib_pkey_sid_slow β the slow-but-steady lookup queen π. yes the name has "slow" in it, she's aware, she's owning it π
π NAME π
sel_ib_pkey_sid_slow β Lookup the SID of a pkey using the policy π
π¦ SYNOPSIS π¦
int sel_ib_pkey_sid_slow (u64 subnet_prefix , u16 pkey_num , u32 *sid );
yep that's the whole signature, spaces and all, no cap β¨
πΈ ARGUMENTS πΈ
subnet_prefixβ the subnet prefix, that's her whole job π«Άpkey_numβ the pkey number, iconic little number that it is βsidβ the pkey SID π₯
π DESCRIPTION π
so what does she actually do? this function determines the SID of a pkey by querying the security policy π β like, she goes and asks the policy directly, main character energy.
then the result gets added to the pkey table so future queries are speedier π¨ (that's the whole reason she's called "slow" β she does the expensive lookup once so everyone else can vibe later).
returns zero on success π, negative values on failure π β so like, check your return value fr fr.
π§ SEE ALSO π§
Kernel file ./security/selinux/ibpkey.c β go read her friends, they're all slaying:
sel_ib_pkey_hashfn(9)sel_ib_pkey_find(9)sel_ib_pkey_insert(9)sel_ib_pkey_sid(9)sel_ib_pkey_flush(9)
that's the whole page bestie, go forth and look up some SIDs π
ok and one lil sign-off: this one lives in ./security/selinux, dated October 2026 β mark your calendars πβ¨πΈ
π¦ 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