Home
last modified time | relevance | path

Searched refs:iint (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/security/integrity/ima/
Dima_iint.c34 struct ima_iint_cache *iint; in __ima_iint_find() local
40 iint = rb_entry(n, struct ima_iint_cache, rb_node); in __ima_iint_find()
42 if (inode < iint->inode) in __ima_iint_find()
44 else if (inode > iint->inode) in __ima_iint_find()
52 return iint; in __ima_iint_find()
60 struct ima_iint_cache *iint; in ima_iint_find() local
66 iint = __ima_iint_find(inode); in ima_iint_find()
69 return iint; in ima_iint_find()
72 static void iint_free(struct ima_iint_cache *iint) in iint_free() argument
74 iint->version = 0; in iint_free()
[all …]
Dima_main.c85 static void ima_check_last_writer(struct ima_iint_cache *iint, in ima_check_last_writer() argument
91 mutex_lock(&iint->mutex); in ima_check_last_writer()
94 iint->version != inode->i_version) in ima_check_last_writer()
95 iint->flags &= ~IMA_MEASURED; in ima_check_last_writer()
96 mutex_unlock(&iint->mutex); in ima_check_last_writer()
108 struct ima_iint_cache *iint; in ima_file_free() local
113 iint = ima_iint_find(inode); in ima_file_free()
114 if (!iint) in ima_file_free()
117 ima_check_last_writer(iint, inode, file); in ima_file_free()
124 struct ima_iint_cache *iint; in process_measurement() local
[all …]
Dima_api.c129 int ima_collect_measurement(struct ima_iint_cache *iint, struct file *file) in ima_collect_measurement() argument
133 if (!(iint->flags & IMA_MEASURED)) { in ima_collect_measurement()
136 memset(iint->digest, 0, IMA_DIGEST_SIZE); in ima_collect_measurement()
137 result = ima_calc_hash(file, iint->digest); in ima_collect_measurement()
139 iint->version = i_version; in ima_collect_measurement()
159 void ima_store_measurement(struct ima_iint_cache *iint, struct file *file, in ima_store_measurement() argument
176 memcpy(entry->template.digest, iint->digest, IMA_DIGEST_SIZE); in ima_store_measurement()
181 iint->flags |= IMA_MEASURED; in ima_store_measurement()
Dima.h114 int ima_collect_measurement(struct ima_iint_cache *iint, struct file *file);
115 void ima_store_measurement(struct ima_iint_cache *iint, struct file *file,