Lines Matching refs:iint
134 struct integrity_iint_cache *iint,
139 struct ima_event_data event_data = { .iint = iint,
203 * storing the measurement and i_version in the iint.
205 * Must be called with iint->mutex held.
209 int ima_collect_measurement(struct integrity_iint_cache *iint,
234 if (iint->flags & IMA_COLLECTED)
257 tmpbuf = krealloc(iint->ima_hash, length, GFP_NOFS);
263 iint->ima_hash = tmpbuf;
264 memcpy(iint->ima_hash, &hash, length);
265 iint->version = i_version;
267 iint->real_ino = real_inode->i_ino;
268 iint->real_dev = real_inode->i_sb->s_dev;
273 iint->flags |= IMA_COLLECTED;
296 * - the inode was previously flushed as well as the iint info,
299 * Must be called with iint->mutex held.
301 void ima_store_measurement(struct integrity_iint_cache *iint,
312 struct ima_event_data event_data = { .iint = iint,
326 if (iint->measured_pcrs & (0x1 << pcr) && !modsig)
338 iint->flags |= IMA_MEASURED;
339 iint->measured_pcrs |= (0x1 << pcr);
345 void ima_audit_measurement(struct integrity_iint_cache *iint,
350 const char *algo_name = hash_algo_name[iint->ima_hash->algo];
353 if (iint->flags & IMA_AUDITED)
356 hash = kzalloc((iint->ima_hash->length * 2) + 1, GFP_KERNEL);
360 for (i = 0; i < iint->ima_hash->length; i++)
361 hex_byte_pack(hash + (i * 2), iint->ima_hash->digest[i]);
376 iint->flags |= IMA_AUDITED;