Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\xattr.c Create Date:2022-07-28 20:09:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__vfs_setxattr_noperm - perform setxattr operation without performing* permission checks

Proto:int __vfs_setxattr_noperm(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
const char *name
const void *value
size_tsize
intflags
173  inode = Where the name belongs to - NULL is * negative
174  error = -EAGAIN
175  issec = Not strncmp(name, XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN)
178  If issec Then i_flags &= ~ suid or xattr security attributes
180  If i_opflags & IOP_XATTR Then
181  error = __vfs_setxattr(dentry, inode, name, value, size, flags)
182  If Not error Then
187  Else
188  If Value for the false possibility is greater at compile time(is an inode errored) Then Return -EIO
191  If error == -EAGAIN Then
192  error = -EOPNOTSUPP
194  If issec Then
204  Return error
Caller
NameDescribe
smack_inode_setsecctx
ima_fix_xattr
evm_update_evmxattrCalculate the hmac and update security.evm xattr* Expects to be called with i_mutex locked.
vfs_setxattr