函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:27:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Same as path_has_perm, but uses the inode from the file struct.

函数原型:static inline int file_path_has_perm(const struct cred *cred, struct file *file, unsigned int av)

返回类型:int

参数:

类型参数名称
const struct cred *cred
struct file *file
unsigned intav
1727  type等于LSM_AUDIT_DATA_FILE
1728  file等于file
1729  返回: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).
调用者
名称描述
flush_unauthorized_filesDerived from fs/exec.c:flush_old_files.
selinux_file_open