#include "dm-core.h"
#include "dm-ima.h"
#include <linux/ima.h>
#include <linux/sched/mm.h>
#include <crypto/hash.h>
#include <linux/crypto.h>
#include <crypto/hash_info.h>
#define DM_MSG_PREFIX …
static void fix_separator_chars(char **buf)
{ … }
static void *dm_ima_alloc(size_t len, gfp_t flags, bool noio)
{ … }
static int dm_ima_alloc_and_copy_name_uuid(struct mapped_device *md, char **dev_name,
char **dev_uuid, bool noio)
{ … }
static int dm_ima_alloc_and_copy_device_data(struct mapped_device *md, char **device_data,
unsigned int num_targets, bool noio)
{ … }
static void dm_ima_measure_data(const char *event_name, const void *buf, size_t buf_len,
bool noio)
{ … }
static int dm_ima_alloc_and_copy_capacity_str(struct mapped_device *md, char **capacity_str,
bool noio)
{ … }
void dm_ima_reset_data(struct mapped_device *md)
{ … }
void dm_ima_measure_on_table_load(struct dm_table *table, unsigned int status_flags)
{ … }
void dm_ima_measure_on_device_resume(struct mapped_device *md, bool swap)
{ … }
void dm_ima_measure_on_device_remove(struct mapped_device *md, bool remove_all)
{ … }
void dm_ima_measure_on_table_clear(struct mapped_device *md, bool new_map)
{ … }
void dm_ima_measure_on_device_rename(struct mapped_device *md)
{ … }