'\" t .\" Title: sk_ns_capable .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "SK_NS_CAPABLE" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "Linux Networking" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" sk_ns_capable \- General socket capability test .SH "SYNOPSIS" .HP \w'bool\ sk_ns_capable('u .BI "bool sk_ns_capable(const\ struct\ sock\ *\ " "sk" ", struct\ user_namespace\ *\ " "user_ns" ", int\ " "cap" ");" .SH "ARGUMENTS" .PP \fIconst struct sock * sk\fR .RS 4 Socket to use a capability on or through .RE .PP \fIstruct user_namespace * user_ns\fR .RS 4 The user namespace of the capability to use .RE .PP \fIint cap\fR .RS 4 The capability to use .RE .SH "DESCRIPTION" .PP Test to see if the opener of the socket had when the socket was created and the current process has the capability \fIcap\fR in the user namespace \fIuser_ns\fR\&. .SH "COPYRIGHT" .br