aboutsummaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/mmap.c')
-rw-r--r--mm/mmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/mmap.c b/mm/mmap.c
index d4855a682ab6..c3647f3b0621 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -20,6 +20,7 @@
20#include <linux/fs.h> 20#include <linux/fs.h>
21#include <linux/personality.h> 21#include <linux/personality.h>
22#include <linux/security.h> 22#include <linux/security.h>
23#include <linux/ima.h>
23#include <linux/hugetlb.h> 24#include <linux/hugetlb.h>
24#include <linux/profile.h> 25#include <linux/profile.h>
25#include <linux/module.h> 26#include <linux/module.h>
@@ -1050,6 +1051,9 @@ unsigned long do_mmap_pgoff(struct file * file, unsigned long addr,
1050 error = security_file_mmap(file, reqprot, prot, flags, addr, 0); 1051 error = security_file_mmap(file, reqprot, prot, flags, addr, 0);
1051 if (error) 1052 if (error)
1052 return error; 1053 return error;
1054 error = ima_file_mmap(file, prot);
1055 if (error)
1056 return error;
1053 1057
1054 return mmap_region(file, addr, len, flags, vm_flags, pgoff, 1058 return mmap_region(file, addr, len, flags, vm_flags, pgoff,
1055 accountable); 1059 accountable);