sel_netif_sid_slow(9)
sel_netif_sid_slow(9) β¨
hiii bestie, welcome to the Kernel API Manual! Today's main character is sel_netif_sid_slow, and yes, we're gonna get you comfy with it π
πΈ NAME πΈ
sel_netif_sid_slow β Lookup the SID of a network interface using the policy. periodt.
β¨ SYNOPSIS β¨
int sel_netif_sid_slow (struct net *ns , int ifindex , u32 *sid );
π ARGUMENTS π
nsβ the network namespace. namespace bestie has entered the chat.ifindexβ the network interface. the interface in question, iykyk.sidβ interface SID. the SID we're talking about.
π¦ DESCRIPTION π¦
Okay so sel_netif_sid_slow determines the SID of a network interface by querying the security policy π₯. The result is added to the network interface table to speedup future queries β‘ β future-you says thank you. Returns zero on success, negative values on failure π.
heads up: failure gives you negative values, not a cute little zero. slay responsibly.
π 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(9)sel_netif_kill(9)sel_netif_flush(9)
π cute sign-off: source/version ./security/selinux, dated October 2026, page sel_netif_sid_slow(9) β bye bestie, go query that policy! π
β¨
π¦ 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