--- zzzz-none-000/linux-3.10.107/include/linux/ima.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/include/linux/ima.h 2021-02-04 17:41:59.000000000 +0000 @@ -15,10 +15,11 @@ #ifdef CONFIG_IMA extern int ima_bprm_check(struct linux_binprm *bprm); -extern int ima_file_check(struct file *file, int mask); +extern int ima_file_check(struct file *file, int mask, int opened); extern void ima_file_free(struct file *file); extern int ima_file_mmap(struct file *file, unsigned long prot); extern int ima_module_check(struct file *file); +extern int ima_fw_from_file(struct file *file, char *buf, size_t size); #else static inline int ima_bprm_check(struct linux_binprm *bprm) @@ -26,7 +27,7 @@ return 0; } -static inline int ima_file_check(struct file *file, int mask) +static inline int ima_file_check(struct file *file, int mask, int opened) { return 0; } @@ -45,6 +46,11 @@ { return 0; } + +static inline int ima_fw_from_file(struct file *file, char *buf, size_t size) +{ + return 0; +} #endif /* CONFIG_IMA */