函数逻辑报告 |
Source Code:security\integrity\evm\evm_main.c |
Create Date:2022-07-27 22:08:27 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int evm_protect_xattr(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_t | xattr_value_len |
317 | 如果字符串比较恒等于0则 |
320 | 否则如果非evm_protected_xattr(xattr_name)则 |
321 | 如果非posix_xattr_acl(xattr_name)则返回:0 |
324 | 如果evm_status恒等于INTEGRITY_PASS或evm_status恒等于INTEGRITY_NOXATTRS则返回:0 |
327 | 转到:out |
331 | 如果evm_status恒等于INTEGRITY_NOXATTRS则 |
335 | 如果iint且flags按位与IMA_NEW_FILE则返回:0 |
339 | 如果s_magic恒等于TMPFS_MAGIC或s_magic恒等于SYSFS_MAGIC则返回:0 |
343 | integrity_audit_msg(Metadata integrity verification , Where the name belongs to - NULL is * negative , name, "update_metadata", integrity_status_msg[evm_status], - EPERM, 0) |
349 | out : |
355 | 返回:如果evm_status恒等于INTEGRITY_PASS则0否则负EPERM |
名称 | 描述 |
---|---|
evm_inode_setxattr | 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 |
evm_inode_removexattr | vm_inode_removexattr - protect the EVM extended attribute*@dentry: pointer to the affected dentry*@xattr_name: pointer to the affected extended attribute name* Removing 'security.evm' requires CAP_SYS_ADMIN privileges and that* the current value is valid. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |