函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ap_inode_removexattr - Determine whether an xattr may be removed*@dentry: The inode/dentry being altered*@name: The name of the xattr to be changed* Determine whether an xattr may be removed from an inode, returning 0 if

函数原型:int cap_inode_removexattr(struct dentry *dentry, const char *name)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
const char *name
946  user_ns等于s_user_ns
949  如果字符串指定长度比较不等于0则返回:0
953  如果字符串比较恒等于0则
955  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
956  如果非inode则返回:负EINVAL
958  如果非apable_wrt_inode_uidgid - Check nsown_capable and uid and gid mapped*@inode: The inode in question*@cap: The capability in question* Return true if the current task has the given capability targeted at* its own user namespace and that the given inode's 则返回:负EPERM
960  返回:0
963  如果非ns_capable(user_ns, Allow setting zone reclaim policy )则返回:负EPERM
965  返回:0
调用者
名称描述
security_inode_removexattr
selinux_inode_removexattr
smack_inode_removexattrsmack_inode_removexattr - Smack check on removexattr*@dentry: the object*@name: name of the attribute* Removing the Smack attribute requires CAP_MAC_ADMIN* Returns 0 if access is permitted, an error code otherwise