sk_ns_capable(9)

sk_ns_capable9

General socket capability test

Usage

bool sk_ns_capable(const struct sock * sk, struct user_namespace * user_ns, int cap);

Arguments

sk

Socket to use a capability on or through

user_ns

The user namespace of the capability to use

cap

The 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 the user namespace user_ns.

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.