table of contents
other versions
SK_CAPABLE(9) | Linux Networking | SK_CAPABLE(9) |
NAME¶
sk_capable - Socket global capability test
SYNOPSIS¶
bool sk_capable(const struct sock * sk, int cap);
ARGUMENTS¶
const struct sock * sk
Socket to use a capability on or through
int cap
The global capability to use
DESCRIPTION¶
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.
COPYRIGHT¶
July 2017 | Kernel Hackers Manual 4.12 |