Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\iint.c Create Date:2022-07-28 19:56:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:struct integrity_iint_cache *integrity_inode_get(struct inode *inode)

Type:struct integrity_iint_cache

Parameter:

TypeParameterName
struct inode *inode
98  struct rb_node * node, * parent = NULL
101  iint = grity_iint_find - return the iint associated with an inode
102  If iint Then Return iint
105  iint = kmem_cache_alloc(iint_cache, GFP_NOFS)
106  If Not iint Then Return NULL
109  write_lock( & integrity_iint_lock)
111  p = rb_node
112  When p cycle
113  parent = p
114  test_iint = rb_entry(parent, structintegrity_iint_cache, rb_node)
116  If inode < ack pointer to inode in question Then p = rb_left
118  Else 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  Return iint
Caller
NameDescribe
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.