diff options
Diffstat (limited to 'include/linux/ima.h')
| -rw-r--r-- | include/linux/ima.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/ima.h b/include/linux/ima.h index 0e4647e0eb60..97914a2833d1 100644 --- a/include/linux/ima.h +++ b/include/linux/ima.h | |||
| @@ -11,14 +11,16 @@ | |||
| 11 | #define _LINUX_IMA_H | 11 | #define _LINUX_IMA_H |
| 12 | 12 | ||
| 13 | #include <linux/fs.h> | 13 | #include <linux/fs.h> |
| 14 | #include <linux/security.h> | ||
| 14 | #include <linux/kexec.h> | 15 | #include <linux/kexec.h> |
| 15 | struct linux_binprm; | 16 | struct linux_binprm; |
| 16 | 17 | ||
| 17 | #ifdef CONFIG_IMA | 18 | #ifdef CONFIG_IMA |
| 18 | extern int ima_bprm_check(struct linux_binprm *bprm); | 19 | extern int ima_bprm_check(struct linux_binprm *bprm); |
| 19 | extern int ima_file_check(struct file *file, int mask, int opened); | 20 | extern int ima_file_check(struct file *file, int mask); |
| 20 | extern void ima_file_free(struct file *file); | 21 | extern void ima_file_free(struct file *file); |
| 21 | extern int ima_file_mmap(struct file *file, unsigned long prot); | 22 | extern int ima_file_mmap(struct file *file, unsigned long prot); |
| 23 | extern int ima_load_data(enum kernel_load_data_id id); | ||
| 22 | extern int ima_read_file(struct file *file, enum kernel_read_file_id id); | 24 | extern int ima_read_file(struct file *file, enum kernel_read_file_id id); |
| 23 | extern int ima_post_read_file(struct file *file, void *buf, loff_t size, | 25 | extern int ima_post_read_file(struct file *file, void *buf, loff_t size, |
| 24 | enum kernel_read_file_id id); | 26 | enum kernel_read_file_id id); |
| @@ -34,7 +36,7 @@ static inline int ima_bprm_check(struct linux_binprm *bprm) | |||
| 34 | return 0; | 36 | return 0; |
| 35 | } | 37 | } |
| 36 | 38 | ||
| 37 | static inline int ima_file_check(struct file *file, int mask, int opened) | 39 | static inline int ima_file_check(struct file *file, int mask) |
| 38 | { | 40 | { |
| 39 | return 0; | 41 | return 0; |
| 40 | } | 42 | } |
| @@ -49,6 +51,11 @@ static inline int ima_file_mmap(struct file *file, unsigned long prot) | |||
| 49 | return 0; | 51 | return 0; |
| 50 | } | 52 | } |
| 51 | 53 | ||
| 54 | static inline int ima_load_data(enum kernel_load_data_id id) | ||
| 55 | { | ||
| 56 | return 0; | ||
| 57 | } | ||
| 58 | |||
| 52 | static inline int ima_read_file(struct file *file, enum kernel_read_file_id id) | 59 | static inline int ima_read_file(struct file *file, enum kernel_read_file_id id) |
| 53 | { | 60 | { |
| 54 | return 0; | 61 | return 0; |
