netlink_ns_capable(9)
π netlink_ns_capable(9) π
okay bestie, this page is from the Kernel API Manual and itβs all about netlink_ns_capable(9) β the general netlink message capability test. Itβs giving very specific kernel security side-quest energy, and weβre gonna read every bit of it. π
β¨
πΈ NAME πΈ
netlink_ns_capable β the general netlink message capability test. No cap, except literally cap is an argument. π
β¨ SYNOPSIS β¨
bool netlink_ns_capable (const struct sk_buff *skb , struct
user_namespace *user_ns , int cap );
π«Ά ARGUMENTS π«Ά
skbβ the socket buffer holding a netlink command from userspace. bestie is carrying the message. π¦user_nsβ the user namespace of the capability to use. thatβs the namespace vibe check. πcapβ the capability to use. yes, the cap. the moment. π
π DESCRIPTION π
okay so the test is: did the opener of the socket we received the message from had β and yes, the page literally just says had, Iβm not making that up π β when the netlink socket was created, and does the sender of the message have the capability cap in the user namespace user_ns? thatβs the check. periodt. β¨
lowkey the sentence is doing the most, but the details are the details: opener of the socket, the message we received, when the netlink socket was created, sender of the message, capabilitycap, user namespaceuser_ns. all of it stays. π«‘
π SEE ALSO π
- Kernel file
./net/netlink/af_netlink.cβ also go look at__netlink_ns_capable(9),netlink_capable(9),netlink_net_capable(9),netlink_set_err(9),netlink_change_ngroups(9), andnlmsg_notify(9). iykyk π₯
mwah π sign-off time: source/version is ./net/netlink, date is October 2026, and the page is netlink_ns_capable(9). bye bestie, go be capable! π¦π
π¦ 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