函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ma_must_appraise - set appraise flag* Return 1 to appraise or hash

函数原型:int ima_must_appraise(struct inode *inode, int mask, enum ima_hooks func)

返回类型:int

参数:

类型参数名称
struct inode *inode
intmask
enum ima_hooksfunc
53  如果非ima_appraise则返回:0
56  security_task_getsecid(当前进程, & secid)
57  返回:ma_match_policy - decision based on LSM and other conditions*@inode: pointer to an inode for which the policy decision is being made*@cred: pointer to a credentials structure for which the policy decision is* being made*@secid: LSM secid of the task to be
调用者
名称描述
ima_post_path_mknodma_post_path_mknod - mark as a new inode*@dentry: newly created dentry* Mark files created via the mknodat syscall as new, so that the* file data can be written later.
ima_inode_post_setattrma_inode_post_setattr - reflect file metadata changes*@dentry: pointer to the affected dentry* Changes to a dentry's metadata might result in needing to appraise.* This function is called from notify_change(), which expects the caller
ima_post_create_tmpfilema_post_create_tmpfile - mark newly created tmpfile as new*@file : newly created tmpfile* No measuring, appraising or auditing of newly created tmpfiles is needed.* Skip calling process_measurement(), but indicate which newly, created