Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ap_inode_need_killpriv - Determine if inode change affects privileges*@dentry: The inode/dentry in being changed with change marked ATTR_KILL_PRIV* Determine if an inode having a change applied that's marked ATTR_KILL_PRIV* affects the security markings

Proto:int cap_inode_need_killpriv(struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
297  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
300  error = __vfs_getxattr(dentry, inode, XATTR_NAME_CAPS, NULL, 0)
301  Return error > 0