Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Same as path_has_perm, but uses the inode from the file struct.

Proto:static inline int file_path_has_perm(const struct cred *cred, struct file *file, unsigned int av)

Type:int

Parameter:

TypeParameterName
const struct cred *cred
struct file *file
unsigned intav
1727  type = LSM_AUDIT_DATA_FILE
1728  file = file
1729  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
flush_unauthorized_filesDerived from fs/exec.c:flush_old_files.
selinux_file_open