Lines Matching refs:inactive_table

339 	if (table->md->ima.active_table.hash != table->md->ima.inactive_table.hash)  in dm_ima_measure_on_table_load()
340 kfree(table->md->ima.inactive_table.hash); in dm_ima_measure_on_table_load()
342 table->md->ima.inactive_table.hash = digest_buf; in dm_ima_measure_on_table_load()
343 table->md->ima.inactive_table.hash_len = strlen(digest_buf); in dm_ima_measure_on_table_load()
344 table->md->ima.inactive_table.num_targets = num_targets; in dm_ima_measure_on_table_load()
347 table->md->ima.inactive_table.device_metadata) in dm_ima_measure_on_table_load()
348 kfree(table->md->ima.inactive_table.device_metadata); in dm_ima_measure_on_table_load()
350 table->md->ima.inactive_table.device_metadata = device_data_buf; in dm_ima_measure_on_table_load()
351 table->md->ima.inactive_table.device_metadata_len = device_data_buf_len; in dm_ima_measure_on_table_load()
391 if (md->ima.active_table.hash != md->ima.inactive_table.hash) in dm_ima_measure_on_device_resume()
398 md->ima.inactive_table.device_metadata) in dm_ima_measure_on_device_resume()
405 if (md->ima.inactive_table.hash) { in dm_ima_measure_on_device_resume()
406 md->ima.active_table.hash = md->ima.inactive_table.hash; in dm_ima_measure_on_device_resume()
407 md->ima.active_table.hash_len = md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_resume()
408 md->ima.inactive_table.hash = NULL; in dm_ima_measure_on_device_resume()
409 md->ima.inactive_table.hash_len = 0; in dm_ima_measure_on_device_resume()
412 if (md->ima.inactive_table.device_metadata) { in dm_ima_measure_on_device_resume()
414 md->ima.inactive_table.device_metadata; in dm_ima_measure_on_device_resume()
416 md->ima.inactive_table.device_metadata_len; in dm_ima_measure_on_device_resume()
417 md->ima.active_table.num_targets = md->ima.inactive_table.num_targets; in dm_ima_measure_on_device_resume()
418 md->ima.inactive_table.device_metadata = NULL; in dm_ima_measure_on_device_resume()
419 md->ima.inactive_table.device_metadata_len = 0; in dm_ima_measure_on_device_resume()
420 md->ima.inactive_table.num_targets = 0; in dm_ima_measure_on_device_resume()
517 if (md->ima.inactive_table.device_metadata) { in dm_ima_measure_on_device_remove()
521 memcpy(device_table_data + l, md->ima.inactive_table.device_metadata, in dm_ima_measure_on_device_remove()
522 md->ima.inactive_table.device_metadata_len); in dm_ima_measure_on_device_remove()
523 l += md->ima.inactive_table.device_metadata_len; in dm_ima_measure_on_device_remove()
542 if (md->ima.inactive_table.hash) { in dm_ima_measure_on_device_remove()
546 memcpy(device_table_data + l, md->ima.inactive_table.hash, in dm_ima_measure_on_device_remove()
547 md->ima.inactive_table.hash_len); in dm_ima_measure_on_device_remove()
548 l += md->ima.inactive_table.hash_len; in dm_ima_measure_on_device_remove()
588 md->ima.inactive_table.device_metadata) in dm_ima_measure_on_device_remove()
589 kfree(md->ima.inactive_table.device_metadata); in dm_ima_measure_on_device_remove()
593 if (md->ima.active_table.hash != md->ima.inactive_table.hash) in dm_ima_measure_on_device_remove()
594 kfree(md->ima.inactive_table.hash); in dm_ima_measure_on_device_remove()
626 if (md->ima.inactive_table.device_metadata_len && in dm_ima_measure_on_table_clear()
627 md->ima.inactive_table.hash_len) { in dm_ima_measure_on_table_clear()
628 memcpy(device_table_data + l, md->ima.inactive_table.device_metadata, in dm_ima_measure_on_table_clear()
629 md->ima.inactive_table.device_metadata_len); in dm_ima_measure_on_table_clear()
630 l += md->ima.inactive_table.device_metadata_len; in dm_ima_measure_on_table_clear()
635 memcpy(device_table_data + l, md->ima.inactive_table.hash, in dm_ima_measure_on_table_clear()
636 md->ima.inactive_table.hash_len); in dm_ima_measure_on_table_clear()
638 l += md->ima.inactive_table.hash_len; in dm_ima_measure_on_table_clear()
663 if (md->ima.inactive_table.hash && in dm_ima_measure_on_table_clear()
664 md->ima.inactive_table.hash != md->ima.active_table.hash) in dm_ima_measure_on_table_clear()
665 kfree(md->ima.inactive_table.hash); in dm_ima_measure_on_table_clear()
667 md->ima.inactive_table.hash = NULL; in dm_ima_measure_on_table_clear()
668 md->ima.inactive_table.hash_len = 0; in dm_ima_measure_on_table_clear()
670 if (md->ima.inactive_table.device_metadata && in dm_ima_measure_on_table_clear()
671 md->ima.inactive_table.device_metadata != md->ima.active_table.device_metadata) in dm_ima_measure_on_table_clear()
672 kfree(md->ima.inactive_table.device_metadata); in dm_ima_measure_on_table_clear()
674 md->ima.inactive_table.device_metadata = NULL; in dm_ima_measure_on_table_clear()
675 md->ima.inactive_table.device_metadata_len = 0; in dm_ima_measure_on_table_clear()
676 md->ima.inactive_table.num_targets = 0; in dm_ima_measure_on_table_clear()
679 md->ima.inactive_table.hash = md->ima.active_table.hash; in dm_ima_measure_on_table_clear()
680 md->ima.inactive_table.hash_len = md->ima.active_table.hash_len; in dm_ima_measure_on_table_clear()
684 md->ima.inactive_table.device_metadata = in dm_ima_measure_on_table_clear()
686 md->ima.inactive_table.device_metadata_len = in dm_ima_measure_on_table_clear()
688 md->ima.inactive_table.num_targets = in dm_ima_measure_on_table_clear()