Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:55:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Same as inode_has_perm, but pass explicit audit data containingthe path to help the auditing code to more easily generate thepathname if needed.

Proto:static inline int path_has_perm(const struct cred *cred, const struct path *path, unsigned int av)

Type:int

Parameter:

TypeParameterName
const struct cred *cred
const struct path *path
unsigned intav
1711  inode = d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
1714  type = LSM_AUDIT_DATA_PATH
1715  path = path
1716  Try reloading inode security labels that have been marked as invalid. The*@may_sleep parameter indicates when sleeping and thus reloading labels is* allowed; when set to false, returns -ECHILD when the label is* invalid
1717  Return Check whether a task has a particular permission to an inode.The 'adp' parameter is optional and allows other auditdata to be passed (e.g. the dentry).
Caller
NameDescribe
selinux_mount
selinux_move_mount
selinux_inode_getattr
selinux_path_notify