Lines Matching refs:iint

38 	struct integrity_iint_cache *iint;  in __integrity_iint_find()  local
42 iint = rb_entry(n, struct integrity_iint_cache, rb_node); in __integrity_iint_find()
44 if (inode < iint->inode) in __integrity_iint_find()
46 else if (inode > iint->inode) in __integrity_iint_find()
54 return iint; in __integrity_iint_find()
62 struct integrity_iint_cache *iint; in integrity_iint_find() local
68 iint = __integrity_iint_find(inode); in integrity_iint_find()
71 return iint; in integrity_iint_find()
74 static void iint_free(struct integrity_iint_cache *iint) in iint_free() argument
76 kfree(iint->ima_hash); in iint_free()
77 iint->ima_hash = NULL; in iint_free()
78 iint->version = 0; in iint_free()
79 iint->flags = 0UL; in iint_free()
80 iint->atomic_flags = 0UL; in iint_free()
81 iint->ima_file_status = INTEGRITY_UNKNOWN; in iint_free()
82 iint->ima_mmap_status = INTEGRITY_UNKNOWN; in iint_free()
83 iint->ima_bprm_status = INTEGRITY_UNKNOWN; in iint_free()
84 iint->ima_read_status = INTEGRITY_UNKNOWN; in iint_free()
85 iint->ima_creds_status = INTEGRITY_UNKNOWN; in iint_free()
86 iint->evm_status = INTEGRITY_UNKNOWN; in iint_free()
87 iint->measured_pcrs = 0; in iint_free()
88 kmem_cache_free(iint_cache, iint); in iint_free()
102 struct integrity_iint_cache *iint, *test_iint; in integrity_inode_get() local
104 iint = integrity_iint_find(inode); in integrity_inode_get()
105 if (iint) in integrity_inode_get()
106 return iint; in integrity_inode_get()
108 iint = kmem_cache_alloc(iint_cache, GFP_NOFS); in integrity_inode_get()
109 if (!iint) in integrity_inode_get()
125 iint->inode = inode; in integrity_inode_get()
126 node = &iint->rb_node; in integrity_inode_get()
132 return iint; in integrity_inode_get()
143 struct integrity_iint_cache *iint; in integrity_inode_free() local
149 iint = __integrity_iint_find(inode); in integrity_inode_free()
150 rb_erase(&iint->rb_node, &integrity_iint_tree); in integrity_inode_free()
153 iint_free(iint); in integrity_inode_free()
158 struct integrity_iint_cache *iint = foo; in init_once() local
160 memset(iint, 0, sizeof(*iint)); in init_once()
161 iint->ima_file_status = INTEGRITY_UNKNOWN; in init_once()
162 iint->ima_mmap_status = INTEGRITY_UNKNOWN; in init_once()
163 iint->ima_bprm_status = INTEGRITY_UNKNOWN; in init_once()
164 iint->ima_read_status = INTEGRITY_UNKNOWN; in init_once()
165 iint->ima_creds_status = INTEGRITY_UNKNOWN; in init_once()
166 iint->evm_status = INTEGRITY_UNKNOWN; in init_once()
167 mutex_init(&iint->mutex); in init_once()