table of contents
other versions
- wheezy 3.2.78-1
INODE_PERMISSION(9) | The Linux VFS | INODE_PERMISSION(9) |
NAME¶
inode_permission - check for access rights to a given inodeSYNOPSIS¶
int
inode_permission(struct inode * inode,
int mask);
ARGUMENTS¶
inodeinode to check permission on
mask
right to check for (MAY_READ,
MAY_WRITE, MAY_EXEC, ...)
DESCRIPTION¶
Used to check for read/write/execute permissions on an inode. We use “fsuid” for this, letting us set arbitrary permissions for filesystem access without changing the “normal” uids which are used for other things. When checking for MAY_APPEND, MAY_WRITE must also be set in mask.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |