Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:evm_protected_xattr

Proto:static int evm_protected_xattr(const char *req_xattr_name)

Type:int

Parameter:

TypeParameterName
const char *req_xattr_name
229  found = 0
232  namelen = strlen - Find the length of a string*@s: The string to be sized
234  If strlen - Find the length of a string*@s: The string to be sized == namelen && strncmp(req_xattr_name, name, namelen) == 0 Then
236  found = 1
237  Break
239  If strncmp(req_xattr_name, name + XATTR_SECURITY_PREFIX_LEN, strlen - Find the length of a string*@s: The string to be sized) == 0 Then
242  found = 1
243  Break
247  Return found
Caller
NameDescribe
evm_verifyxattrvm_verifyxattr - verify the integrity of the requested xattr*@dentry: object of the verify xattr*@xattr_name: requested xattr*@xattr_value: requested xattr value*@xattr_value_len: requested xattr value length* Calculate the HMAC for the given dentry and
evm_protect_xattrvm_protect_xattr - protect the EVM extended attribute* Prevent security.evm from being modified or removed without the* necessary permissions or when the existing value is invalid.* The posix xattr acls are 'system' prefixed, which normally would not
evm_inode_post_setxattrvm_inode_post_setxattr - update 'security
evm_inode_post_removexattrvm_inode_post_removexattr - update 'security
evm_inode_init_securityvm_inode_init_security - initializes security.evm