diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index e6d1432b0800..8d8b69c5664e 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -3036,7 +3036,7 @@ static int selinux_file_mmap(struct file *file, unsigned long reqprot, | |||
3036 | * at bad behaviour/exploit that we always want to get the AVC, even | 3036 | * at bad behaviour/exploit that we always want to get the AVC, even |
3037 | * if DAC would have also denied the operation. | 3037 | * if DAC would have also denied the operation. |
3038 | */ | 3038 | */ |
3039 | if (addr < mmap_min_addr) { | 3039 | if (addr < CONFIG_LSM_MMAP_MIN_ADDR) { |
3040 | rc = avc_has_perm(sid, sid, SECCLASS_MEMPROTECT, | 3040 | rc = avc_has_perm(sid, sid, SECCLASS_MEMPROTECT, |
3041 | MEMPROTECT__MMAP_ZERO, NULL); | 3041 | MEMPROTECT__MMAP_ZERO, NULL); |
3042 | if (rc) | 3042 | if (rc) |