|
@@ -11,6 +11,7 @@
|
|
#define _LINUX_IMA_H
|
|
#define _LINUX_IMA_H
|
|
|
|
|
|
#include <linux/fs.h>
|
|
#include <linux/fs.h>
|
|
|
|
+#include <linux/security.h>
|
|
#include <linux/kexec.h>
|
|
#include <linux/kexec.h>
|
|
struct linux_binprm;
|
|
struct linux_binprm;
|
|
|
|
|
|
@@ -19,6 +20,7 @@ extern int ima_bprm_check(struct linux_binprm *bprm);
|
|
extern int ima_file_check(struct file *file, int mask, int opened);
|
|
extern int ima_file_check(struct file *file, int mask, int opened);
|
|
extern void ima_file_free(struct file *file);
|
|
extern void ima_file_free(struct file *file);
|
|
extern int ima_file_mmap(struct file *file, unsigned long prot);
|
|
extern int ima_file_mmap(struct file *file, unsigned long prot);
|
|
|
|
+extern int ima_load_data(enum kernel_load_data_id id);
|
|
extern int ima_read_file(struct file *file, enum kernel_read_file_id id);
|
|
extern int ima_read_file(struct file *file, enum kernel_read_file_id id);
|
|
extern int ima_post_read_file(struct file *file, void *buf, loff_t size,
|
|
extern int ima_post_read_file(struct file *file, void *buf, loff_t size,
|
|
enum kernel_read_file_id id);
|
|
enum kernel_read_file_id id);
|
|
@@ -49,6 +51,11 @@ static inline int ima_file_mmap(struct file *file, unsigned long prot)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline int ima_load_data(enum kernel_load_data_id id)
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static inline int ima_read_file(struct file *file, enum kernel_read_file_id id)
|
|
static inline int ima_read_file(struct file *file, enum kernel_read_file_id id)
|
|
{
|
|
{
|
|
return 0;
|
|
return 0;
|