sk_net_capable(9)

sk_net_capable9

Network namespace socket capability test

Usage

bool sk_net_capable(const struct sock * sk, int cap);

Arguments

sk

Socket to use a capability on or through

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 over the network namespace the socket is a member of.

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.