1GENERIC_PERMISSION(9) The Linux VFS GENERIC_PERMISSION(9)
2
3
4
6 generic_permission - check for access rights on a Posix-like filesystem
7
9 int generic_permission(struct inode * inode, int mask,
10 int (*check_acl) (struct inode *inode, int mask));
11
13 inode
14 inode to check access rights for
15
16 mask
17 right to check for (MAY_READ, MAY_WRITE, MAY_EXEC)
18
19 check_acl
20 optional callback to check for Posix ACLs
21
23 Used to check for read/write/execute permissions on a file. We use
24 “fsuid” for this, letting us set arbitrary permissions for filesystem
25 access without changing the “normal” uids which are used for other
26 things..
27
29Kernel Hackers Manual 2.6. June 2019 GENERIC_PERMISSION(9)