Lines Matching refs:iint

35 	struct integrity_iint_cache *iint;  in __integrity_iint_find()  local
39 iint = rb_entry(n, struct integrity_iint_cache, rb_node); in __integrity_iint_find()
41 if (inode < iint->inode) in __integrity_iint_find()
43 else if (inode > iint->inode) in __integrity_iint_find()
51 return iint; in __integrity_iint_find()
59 struct integrity_iint_cache *iint; in integrity_iint_find() local
65 iint = __integrity_iint_find(inode); in integrity_iint_find()
68 return iint; in integrity_iint_find()
71 static void iint_free(struct integrity_iint_cache *iint) in iint_free() argument
73 kfree(iint->ima_hash); in iint_free()
74 iint->ima_hash = NULL; in iint_free()
75 iint->version = 0; in iint_free()
76 iint->flags = 0UL; in iint_free()
77 iint->ima_file_status = INTEGRITY_UNKNOWN; in iint_free()
78 iint->ima_mmap_status = INTEGRITY_UNKNOWN; in iint_free()
79 iint->ima_bprm_status = INTEGRITY_UNKNOWN; in iint_free()
80 iint->ima_module_status = INTEGRITY_UNKNOWN; in iint_free()
81 iint->evm_status = INTEGRITY_UNKNOWN; in iint_free()
82 kmem_cache_free(iint_cache, iint); in iint_free()
96 struct integrity_iint_cache *iint, *test_iint; in integrity_inode_get() local
98 iint = integrity_iint_find(inode); in integrity_inode_get()
99 if (iint) in integrity_inode_get()
100 return iint; in integrity_inode_get()
102 iint = kmem_cache_alloc(iint_cache, GFP_NOFS); in integrity_inode_get()
103 if (!iint) in integrity_inode_get()
119 iint->inode = inode; in integrity_inode_get()
120 node = &iint->rb_node; in integrity_inode_get()
126 return iint; in integrity_inode_get()
137 struct integrity_iint_cache *iint; in integrity_inode_free() local
143 iint = __integrity_iint_find(inode); in integrity_inode_free()
144 rb_erase(&iint->rb_node, &integrity_iint_tree); in integrity_inode_free()
147 iint_free(iint); in integrity_inode_free()
152 struct integrity_iint_cache *iint = foo; in init_once() local
154 memset(iint, 0, sizeof(*iint)); in init_once()
155 iint->version = 0; in init_once()
156 iint->flags = 0UL; in init_once()
157 iint->ima_file_status = INTEGRITY_UNKNOWN; in init_once()
158 iint->ima_mmap_status = INTEGRITY_UNKNOWN; in init_once()
159 iint->ima_bprm_status = INTEGRITY_UNKNOWN; in init_once()
160 iint->ima_module_status = INTEGRITY_UNKNOWN; in init_once()
161 iint->evm_status = INTEGRITY_UNKNOWN; in init_once()