函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:evm_is_immutable

函数原型:static int evm_is_immutable(struct dentry *dentry, struct inode *inode)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
struct inode *inode
271  const struct evm_ima_xattr_data * xattr_data = NULL
273  rc等于0
275  iint等于grity_iint_find - return the iint associated with an inode
276  如果iintflags按位与EVM_IMMUTABLE_DIGSIG则返回:1
280  rc等于vfs_getxattr_alloc(dentry, XATTR_NAME_EVM, (char * * ) & xattr_data, 0, GFP_NOFS)
282  如果rc小于等于0则
283  如果rc恒等于负ENODATA则返回:0
285  返回:rc
287  如果type恒等于EVM_XATTR_PORTABLE_DIGSIGrc等于1
289  否则rc等于0
292  释放内存
293  返回:rc
调用者
名称描述
evm_update_evmxattrCalculate the hmac and update security.evm xattr* Expects to be called with i_mutex locked.