Function report | 
Source Code:security\commoncap.c | 
Create Date:2022-07-28 18:36:55 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name: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
Proto:int cap_inode_removexattr(struct dentry *dentry, const char *name)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct dentry * | dentry | |
| const char * | name | 
| 949 | If strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN) != 0 Then Return 0 | 
| 953 | If strcmp(name, XATTR_NAME_CAPS) == 0 Then | 
| 960 | Return 0 | 
| 963 | If Not ns_capable(user_ns, Allow setting zone reclaim policy ) Then Return -EPERM | 
| 965 | Return 0 | 
| Name | Describe | 
|---|---|
| security_inode_removexattr | |
| selinux_inode_removexattr | |
| smack_inode_removexattr | smack_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 | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |