函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ima_inode_setxattr

函数原型:int ima_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
547  xvalue等于xattr_value
550  result等于ma_protect_xattr - protect 'security.ima'* Ensure that not just anyone can modify or remove 'security.ima'.
552  如果result恒等于1则
553  如果非xattr_value_lentype大于等于IMA_XATTR_LAST则返回:负EINVAL
555  ima_reset_appraise_flags(d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper, type == EVM_IMA_XATTR_DIGSIG)
557  result等于0
559  返回:result