Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_inode_follow_link

Proto:static int selinux_inode_follow_link(struct dentry *dentry, struct inode *inode, bool rcu)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
struct inode *inode
boolrcu
3001  cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
3006  validate_creds(cred)
3008  type = LSM_AUDIT_DATA_DENTRY
3009  dentry = dentry
3010  sid = get the security ID of a set of credentials
3011  isec = inode_security_rcu(inode, rcu)
3012  If IS_ERR(isec) Then Return PTR_ERR(isec)
3015  Return avc_has_perm_flags( & selinux_state, sid, SID of this object , security class of this object , FILE__READ, & ad, rcu ? called from RCU mode, don't block : 0)