函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:vm_inode_setxattr - protect the EVM extended attribute*@dentry: pointer to the affected dentry*@xattr_name: pointer to the affected extended attribute name*@xattr_value: pointer to the new extended attribute value*@xattr_value_len: pointer to the new

函数原型:int evm_inode_setxattr(struct dentry *dentry, const char *xattr_name, const void *xattr_value, size_t xattr_value_len)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
const char *xattr_name
const void *xattr_value
size_txattr_value_len
374  xattr_data等于xattr_value
379  如果evm_initialized按位与EVM_ALLOW_METADATA_WRITES则返回:0
382  如果字符串比较恒等于0则
383  如果非xattr_value_len则返回:负EINVAL
385  如果type不等于EVM_IMA_XATTR_DIGSIGtype不等于EVM_XATTR_PORTABLE_DIGSIG则返回:负EPERM
389  返回:vm_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