__netlink_ns_capable(9)
πΈ NAME πΈ
okay so bestie, welcome to the Kernel API Manual π this page is __netlink_ns_capable(9) β General netlink message capability test. no cap, thatβs literally the whole name vibe. β¨
π¦ SYNOPSIS π¦
bool __netlink_ns_capable (const struct netlink_skb_parms *nsp , struct
user_namespace *user_ns , int cap );
π ARGUMENTS π
nspβ theNETLINK_CBof the socket buffer holding a netlink command from userspace. πuser_nsβ the user namespace of the capability to use. πcapβ the capability to use. π₯
π DESCRIPTION π
okay so the actual test is a permission vibe check: it tests whether the opener of the socket we received the message from had it when the netlink socket was created, and whether the sender of the message has the capability cap in the user namespace user_ns. thatβs the whole bit. π
π SEE ALSO π
go be nosy in the kernel file ./net/netlink/af_netlink.c and check out these besties:
netlink_ns_capable(9)netlink_capable(9)netlink_net_capable(9)netlink_set_err(9)netlink_change_ngroups(9)nlmsg_notify(9)
π cute sign-off time: source/version is ./net/netlink, date is October 2026, and itβs the __netlink_ns_capable(9) page. bye bestie, mwah π
π¦ 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