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

NAME

6       inode_permission - Check for access rights to a given inode
7

SYNOPSIS

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

ARGUMENTS

12       inode
13           Inode to check permission on
14
15       mask
16           Right to check for (MAY_READ, MAY_WRITE, MAY_EXEC)
17

DESCRIPTION

19       Check for read/write/execute permissions on an inode. We use fs[ug]id
20       for this, letting us set arbitrary permissions for filesystem access
21       without changing the “normal” UIDs which are used for other things.
22
23       When checking for MAY_APPEND, MAY_WRITE must also be set in mask.
24
26Kernel Hackers Manual 3.10         June 2019               INODE_PERMISSION(9)
Impressum