函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:grity_inode_get - find or allocate an iint associated with an inode*@inode: pointer to the inode*@return: allocated iint* Caller must lock i_mutex

函数原型:struct integrity_iint_cache *integrity_inode_get(struct inode *inode)

返回类型:struct integrity_iint_cache

参数:

类型参数名称
struct inode *inode
98  struct rb_node * node, * parent = NULL
101  iint等于grity_iint_find - return the iint associated with an inode
102  如果iint则返回:iint
105  iint等于分配高速缓存区
106  如果非iint则返回:NULL
109  write_lock( & integrity_iint_lock)
111  p等于rb_node
112 p循环
113  parent等于p
114  test_iint等于rb_entry(parent, structintegrity_iint_cache, rb_node)
116  如果inode小于ack pointer to inode in question p等于rb_left
118  否则p等于rb_right
122  ack pointer to inode in question 等于inode
123  node等于d in integrity_iint_tree
124  i_flags或等于Inode has an associated IMA struct
125  rb_link_node(node, parent, p)
126  rb_insert_color(node, & integrity_iint_tree)
128  write_unlock( & integrity_iint_lock)
129  返回:iint
调用者
名称描述
process_measurement
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
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.