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->atomic_flags = 0UL; in iint_free()
78 iint->ima_file_status = INTEGRITY_UNKNOWN; in iint_free()
79 iint->ima_mmap_status = INTEGRITY_UNKNOWN; in iint_free()
80 iint->ima_bprm_status = INTEGRITY_UNKNOWN; in iint_free()
81 iint->ima_read_status = INTEGRITY_UNKNOWN; in iint_free()
82 iint->ima_creds_status = INTEGRITY_UNKNOWN; in iint_free()
83 iint->evm_status = INTEGRITY_UNKNOWN; in iint_free()
84 iint->measured_pcrs = 0; in iint_free()
85 kmem_cache_free(iint_cache, iint); in iint_free()
99 struct integrity_iint_cache *iint, *test_iint; in integrity_inode_get() local
109 iint = integrity_iint_find(inode); in integrity_inode_get()
110 if (iint) in integrity_inode_get()
111 return iint; in integrity_inode_get()
113 iint = kmem_cache_alloc(iint_cache, GFP_NOFS); in integrity_inode_get()
114 if (!iint) in integrity_inode_get()
130 iint->inode = inode; in integrity_inode_get()
131 node = &iint->rb_node; in integrity_inode_get()
137 return iint; in integrity_inode_get()
148 struct integrity_iint_cache *iint; in integrity_inode_free() local
154 iint = __integrity_iint_find(inode); in integrity_inode_free()
155 rb_erase(&iint->rb_node, &integrity_iint_tree); in integrity_inode_free()
158 iint_free(iint); in integrity_inode_free()
163 struct integrity_iint_cache *iint = foo; in init_once() local
165 memset(iint, 0, sizeof(*iint)); in init_once()
166 iint->ima_file_status = INTEGRITY_UNKNOWN; in init_once()
167 iint->ima_mmap_status = INTEGRITY_UNKNOWN; in init_once()
168 iint->ima_bprm_status = INTEGRITY_UNKNOWN; in init_once()
169 iint->ima_read_status = INTEGRITY_UNKNOWN; in init_once()
170 iint->ima_creds_status = INTEGRITY_UNKNOWN; in init_once()
171 iint->evm_status = INTEGRITY_UNKNOWN; in init_once()
172 mutex_init(&iint->mutex); in init_once()