ima.h 733 字节
Newer Older
1 2 3
#ifndef _ASM_POWERPC_IMA_H
#define _ASM_POWERPC_IMA_H

4 5
struct kimage;

6 7 8 9 10 11 12 13 14
int ima_get_kexec_buffer(void **addr, size_t *size);
int ima_free_kexec_buffer(void);

#ifdef CONFIG_IMA
void remove_ima_buffer(void *fdt, int chosen_node);
#else
static inline void remove_ima_buffer(void *fdt, int chosen_node) {}
#endif

15 16 17 18 19 20 21 22 23 24 25 26 27 28
#ifdef CONFIG_IMA_KEXEC
int arch_ima_add_kexec_buffer(struct kimage *image, unsigned long load_addr,
			      size_t size);

int setup_ima_buffer(const struct kimage *image, void *fdt, int chosen_node);
#else
static inline int setup_ima_buffer(const struct kimage *image, void *fdt,
				   int chosen_node)
{
	remove_ima_buffer(fdt, chosen_node);
	return 0;
}
#endif /* CONFIG_IMA_KEXEC */

29
#endif /* _ASM_POWERPC_IMA_H */