sel_netif_sid(9)
π sel_netif_sid(9) π
okay so bestie, this page is from the Kernel API Manual, and it's literally the guide to sel_netif_sid β no cap, it's all about looking up the SID of a network interface π
π NAME π
sel_netif_sid β Lookup the SID of a network interface β¨
πΈ SYNOPSIS πΈ
int sel_netif_sid (struct net *ns , int ifindex , u32 *sid );
π ARGUMENTS π
nsβ the network namespace.ifindexβ the network interface.sidβ interface SID.
π¦ DESCRIPTION π¦
This function determines the SID of a network interface using the fastest method possible π€β¨
First the interface 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.
Returns zero on success, negative values on failure.
π SEE ALSO π
- Kernel file
./security/selinux/netif.c sel_netif_hashfn(9)sel_netif_find(9)sel_netif_insert(9)sel_netif_destroy(9)sel_netif_sid_slow(9)sel_netif_kill(9)sel_netif_flush(9)
and that's the whole vibe, bestie π«Ά this little page comes from ./security/selinux, dated October 2026 β 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