---
name: "sk_net_capable"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sk_net_capable"
---

# sk\_net\_capable(9)

Network namespace socket capability test

## NAME

sk\_net\_capable - Network namespace socket capability test

## SYNOPSIS

**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

## DESCRIPTION

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.

## COPYRIGHT
