- bool sk_ns_capable(const struct sock * sk, struct user_namespace * user_ns, int cap);
- Socket to use a capability on or through
- The user namespace of the capability to use
- The capability to use
Test to see if the opener of the socket had when the socket was created and the current process has the capability cap in the user namespace user_ns.