Socket global capability test
bool sk_capable(const struct sock * sk, int cap);
sk
Socket to use a capability on or through
cap
The global capbility 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 all user namespaces.