1GENERIC_PERMISSION(9)            The Linux VFS           GENERIC_PERMISSION(9)
2
3
4

NAME

6       generic_permission - check for access rights on a Posix-like filesystem
7

SYNOPSIS

9       int generic_permission(struct inode * inode, int mask);
10

ARGUMENTS

12       inode
13           inode to check access rights for
14
15       mask
16           right to check for (MAY_READ, MAY_WRITE, MAY_EXEC, ...)
17

DESCRIPTION

19       Used to check for read/write/execute permissions on a file. We use
20       “fsuid” for this, letting us set arbitrary permissions for filesystem
21       access without changing the “normal” uids which are used for other
22       things.
23
24       generic_permission is rcu-walk aware. It returns -ECHILD in case an
25       rcu-walk request cannot be satisfied (eg. requires blocking or too much
26       complexity). It would then be called again in ref-walk mode.
27
29Kernel Hackers Manual 3.10         June 2019             GENERIC_PERMISSION(9)
Impressum