1FILE_PERMISSION(9) The Linux VFS FILE_PERMISSION(9)
2
3
4
6 file_permission - check for additional access rights to a given file
7
9 int file_permission(struct file * file, int mask);
10
12 file
13 file to check access rights for
14
15 mask
16 right to check for (MAY_READ, MAY_WRITE, MAY_EXEC)
17
19 Used to check for read/write/execute permissions on an already opened
20 file.
21
23 Do not use this function in new code. All access checks should be done
24 using inode_permission.
25
27Kernel Hackers Manual 2.6. June 2019 FILE_PERMISSION(9)