aboutsummaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/security/security.c b/security/security.c
index 35d37d0f0d49..e41b1a8d7644 100644
--- a/security/security.c
+++ b/security/security.c
@@ -847,7 +847,12 @@ int security_kernel_create_files_as(struct cred *new, struct inode *inode)
847 847
848int security_kernel_fw_from_file(struct file *file, char *buf, size_t size) 848int security_kernel_fw_from_file(struct file *file, char *buf, size_t size)
849{ 849{
850 return security_ops->kernel_fw_from_file(file, buf, size); 850 int ret;
851
852 ret = security_ops->kernel_fw_from_file(file, buf, size);
853 if (ret)
854 return ret;
855 return ima_fw_from_file(file, buf, size);
851} 856}
852EXPORT_SYMBOL_GPL(security_kernel_fw_from_file); 857EXPORT_SYMBOL_GPL(security_kernel_fw_from_file);
853 858