inode_owner_or_capable (9) Linux Manual Page
inode_owner_or_capable – check current task permissions to inode
Synopsis
-
bool inode_owner_or_capable(const struct inodeinode* );
Arguments
inode
-
- inode being checked
Description
Return true if current either has CAP_FOWNER in a namespace with the inode owner uid mapped, or owns the file.
