sk_capable(9)

sk_capable9

Socket global capability test

Usage

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

Overview

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.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.