netlink_capable(9)
π¦ netlink_capable(9) β Kernel API Manual π¦
okay bestie, welcome to the Kernel API Manual page for netlink_capable(9) β it's giving netlink capability check, and it's literally here to answer one very specific permission vibe check. π
β¨
β¨ NAME β¨
netlink_capable β Netlink global message capability test. short, iconic, to the point π
πΈ SYNOPSIS πΈ
bool netlink_capable (const struct sk_buff *skb , int cap );
π ARGUMENTS π
skbβ socket buffer holding a netlink command from userspace. it's the little package of netlink command energy from userspace, not me making that up πcapβ The capability to use. that's the capability you're checking for, periodt π
π DESCRIPTION π
Okay so here's the whole plot: this 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 all user namespaces. π
That's the check. The opener vibe from socket-creation time? checked. The sender having cap in all user namespaces? also checked. no partial-namespace nonsense, bestie β all of them. ππ
π SEE ALSO π
Kernel file: ./net/netlink/af_netlink.c β yes, the kernel file, she's right there in the source. π§
__netlink_ns_capable(9)netlink_ns_capable(9)netlink_net_capable(9)netlink_set_err(9)netlink_change_ngroups(9)nlmsg_notify(9)
okay that's the page! cute little footer vibes for the record: source/version is ./net/netlink, date is October 2026, and the title is still absolutely slaying as netlink_capable(9). π«Άβ¨π
π¦ 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