ima: add support for measuring and appraising firmware
[deliverable/linux.git] / include / linux / ima.h
index 1b7f268cddce7535dd25d2fa61fc80aaa8c2cfda..7cf5e9b3255013deb9b4feac058112f5d7acdc5a 100644 (file)
@@ -19,6 +19,7 @@ extern int ima_file_check(struct file *file, int mask);
 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)
@@ -46,6 +47,11 @@ static inline int ima_module_check(struct file *file)
        return 0;
 }
 
+static inline int ima_fw_from_file(struct file *file, char *buf, size_t size)
+{
+       return 0;
+}
+
 #endif /* CONFIG_IMA */
 
 #ifdef CONFIG_IMA_APPRAISE
This page took 0.025838 seconds and 5 git commands to generate.