'\" t .\" Title: sk_net_capable .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Linux Networking .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "SK_NET_CAPABLE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_net_capable \- Network namespace socket capability test .SH "SYNOPSIS" .HP \w'bool\ sk_net_capable('u .BI "bool sk_net_capable(const\ struct\ sock\ *\ " "sk" ", int\ " "cap" ");" .SH "ARGUMENTS" .PP \fIsk\fR .RS 4 Socket to use a capability on or through .RE .PP \fIcap\fR .RS 4 The capability to use .RE .SH "DESCRIPTION" .PP Test to see if the opener of the socket had when the socke was created and the current process has the capability \fIcap\fR over the network namespace the socket is a member of\&. .SH "COPYRIGHT" .br