Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\ima\ima_appraise.c Create Date:2022-07-28 19:59:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ma_protect_xattr - protect 'security.ima'* Ensure that not just anyone can modify or remove 'security.ima'.

Proto:static int ima_protect_xattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
const char *xattr_name
const void *xattr_value
size_txattr_value_len
518  If strcmp(xattr_name, XATTR_NAME_IMA) == 0 Then
519  If Not Check operation authority Then Return -EPERM
521  Return 1
523  Return 0
Caller
NameDescribe
ima_inode_setxattr
ima_inode_removexattr