Lines Matching refs:active_table

339 	if (table->md->ima.active_table.hash != table->md->ima.inactive_table.hash)  in dm_ima_measure_on_table_load()
346 if (table->md->ima.active_table.device_metadata != 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()
392 kfree(md->ima.active_table.hash); in dm_ima_measure_on_device_resume()
394 md->ima.active_table.hash = NULL; in dm_ima_measure_on_device_resume()
395 md->ima.active_table.hash_len = 0; in dm_ima_measure_on_device_resume()
397 if (md->ima.active_table.device_metadata != in dm_ima_measure_on_device_resume()
399 kfree(md->ima.active_table.device_metadata); in dm_ima_measure_on_device_resume()
401 md->ima.active_table.device_metadata = NULL; in dm_ima_measure_on_device_resume()
402 md->ima.active_table.device_metadata_len = 0; in dm_ima_measure_on_device_resume()
403 md->ima.active_table.num_targets = 0; 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()
413 md->ima.active_table.device_metadata = in dm_ima_measure_on_device_resume()
415 md->ima.active_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()
424 if (md->ima.active_table.device_metadata) { in dm_ima_measure_on_device_resume()
425 memcpy(device_table_data + l, md->ima.active_table.device_metadata, in dm_ima_measure_on_device_resume()
426 md->ima.active_table.device_metadata_len); in dm_ima_measure_on_device_resume()
427 l += md->ima.active_table.device_metadata_len; in dm_ima_measure_on_device_resume()
432 if (md->ima.active_table.hash) { in dm_ima_measure_on_device_resume()
436 memcpy(device_table_data + l, md->ima.active_table.hash, in dm_ima_measure_on_device_resume()
437 md->ima.active_table.hash_len); in dm_ima_measure_on_device_resume()
438 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_resume()
506 if (md->ima.active_table.device_metadata) { in dm_ima_measure_on_device_remove()
510 memcpy(device_table_data + l, md->ima.active_table.device_metadata, in dm_ima_measure_on_device_remove()
511 md->ima.active_table.device_metadata_len); in dm_ima_measure_on_device_remove()
512 l += md->ima.active_table.device_metadata_len; in dm_ima_measure_on_device_remove()
528 if (md->ima.active_table.hash) { in dm_ima_measure_on_device_remove()
532 memcpy(device_table_data + l, md->ima.active_table.hash, in dm_ima_measure_on_device_remove()
533 md->ima.active_table.hash_len); in dm_ima_measure_on_device_remove()
534 l += md->ima.active_table.hash_len; in dm_ima_measure_on_device_remove()
585 kfree(md->ima.active_table.device_metadata); in dm_ima_measure_on_device_remove()
587 if (md->ima.active_table.device_metadata != in dm_ima_measure_on_device_remove()
591 kfree(md->ima.active_table.hash); 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()
664 md->ima.inactive_table.hash != md->ima.active_table.hash) 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()
678 if (md->ima.active_table.hash) { 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()
683 if (md->ima.active_table.device_metadata) { in dm_ima_measure_on_table_clear()
685 md->ima.active_table.device_metadata; in dm_ima_measure_on_table_clear()
687 md->ima.active_table.device_metadata_len; in dm_ima_measure_on_table_clear()
689 md->ima.active_table.num_targets; in dm_ima_measure_on_table_clear()
712 md->ima.active_table.num_targets, noio)) in dm_ima_measure_on_device_rename()
726 old_device_data = md->ima.active_table.device_metadata; in dm_ima_measure_on_device_rename()
728 md->ima.active_table.device_metadata = new_device_data; in dm_ima_measure_on_device_rename()
729 md->ima.active_table.device_metadata_len = strlen(new_device_data); in dm_ima_measure_on_device_rename()