aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'security/selinux')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 8a78f584f46e..5dee88362e71 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3040,7 +3040,7 @@ static int selinux_file_mmap(struct file *file, unsigned long reqprot,
3040 * at bad behaviour/exploit that we always want to get the AVC, even 3040 * at bad behaviour/exploit that we always want to get the AVC, even
3041 * if DAC would have also denied the operation. 3041 * if DAC would have also denied the operation.
3042 */ 3042 */
3043 if (addr < mmap_min_addr) { 3043 if (addr < CONFIG_LSM_MMAP_MIN_ADDR) {
3044 rc = avc_has_perm(sid, sid, SECCLASS_MEMPROTECT, 3044 rc = avc_has_perm(sid, sid, SECCLASS_MEMPROTECT,
3045 MEMPROTECT__MMAP_ZERO, NULL); 3045 MEMPROTECT__MMAP_ZERO, NULL);
3046 if (rc) 3046 if (rc)