sk_ns_capable(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hiii bestie πŸ’– welcome to sk_ns_capable(9) from the Kernel API Manual β€” it’s the general socket capability test and it’s giving β€œtiny function, serious permission vibes” ✨

🌸 NAME 🌸

sk_ns_capable β€” General socket capability test πŸ’…

✨ SYNOPSIS ✨

bool sk_ns_capable (const struct sock *sk , struct user_namespace
       *user_ns , int cap );

πŸŽ€ ARGUMENTS πŸŽ€

  • sk β€” Socket to use a capability on or through. yes bestie, the socket itself 🧦
  • user_ns β€” The user namespace of the capability to use. it’s the namespace context, no cap 🧒
  • cap β€” The capability to use. the actual capability being checked πŸ”‘

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this one is a test πŸ‘€ it checks whether the opener of the socket had the capability when the socket was created, and whether the current process has the capability cap in the user namespace user_ns. it’s a two-part vibe check: opener-at-socket-creation time + current-process time, with cap in user_ns β€” both pieces are literally in the sentence, bestie πŸ’€

πŸ’œ SEE ALSO πŸ’œ


okay bye bestie 🫢 this little page is from the Kernel API Manual, source ./net/core, dated October 2026 β€” mwah πŸ’‹

πŸ“¦ where this page comes from