netlink_capable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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. 🧚


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