table of contents
other versions
- jessie-backports 4.9.88-1+deb9u1~bpo8+1
- stretch 4.9.144-3
GENERIC_PERMISSION(9) | The Linux VFS | GENERIC_PERMISSION(9) |
NAME¶
generic_permission - check for access rights on a Posix-like filesystemSYNOPSIS¶
int
generic_permission(struct inode * inode,
int mask);
ARGUMENTS¶
inodeinode to check access rights for
mask
right to check for (MAY_READ, MAY_WRITE,
MAY_EXEC, ...)
DESCRIPTION¶
Used to check for read/write/execute permissions on a file. We use “fsuid” for this, letting us set arbitrary permissions for filesystem access without changing the “normal” uids which are used for other things. generic_permission is rcu-walk aware. It returns -ECHILD in case an rcu-walk request cannot be satisfied (eg. requires blocking or too much complexity). It would then be called again in ref-walk mode.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 4.9. |