sk_capable
Prev | Socket Buffer Functions | Next

## Name

sk_capable — Socket global capability test

## Synopsis

`bool sk_capable (` | const struct sock * sk,
| int cap`)`;

## Arguments

`sk`

  Socket to use a capability on or through

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

Prev | Up | Next
sk_ns_capable | Home | sk_net_capable