Name

inode_owner_or_capable — check current task permissions to inode

Synopsis

bool inode_owner_or_capable (const struct inode * inode);
 

Arguments

inode

inode being checked

Description

Return true if current either has CAP_FOWNER to the inode, or owns the file.