'\" t .\" Title: inode_owner_or_capable .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "INODE_OWNER_OR_CAPAB" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "The Linux VFS" .\" ----------------------------------------------------------------- .\" * 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" inode_owner_or_capable \- check current task permissions to inode .SH "SYNOPSIS" .HP \w'bool\ inode_owner_or_capable('u .BI "bool inode_owner_or_capable(const\ struct\ inode\ *\ " "inode" ");" .SH "ARGUMENTS" .PP \fIinode\fR .RS 4 inode being checked .RE .SH "DESCRIPTION" .PP Return true if current either has CAP_FOWNER in a namespace with the inode owner uid mapped, or owns the file\&. .SH "COPYRIGHT" .br