函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Same as inode_has_perm, but pass explicit audit data containingthe dentry to help the auditing code to more easily generate thepathname if needed.

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

返回类型:int

参数:

类型参数名称
const struct cred *cred
struct dentry *dentry
unsigned intav
1695  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
1698  type等于LSM_AUDIT_DATA_DENTRY
1699  dentry等于dentry
1700  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
1701  返回: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).
调用者
名称描述
selinux_quota_on
selinux_inode_readlink
selinux_inode_setattr
selinux_inode_setxattr
selinux_inode_getxattr
selinux_inode_listxattr
selinux_inode_removexattr