]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - security/selinux/hooks.c
Security/SELinux: seperate lsm specific mmap_min_addr
[net-next-2.6.git] / security / selinux / hooks.c
index e6d1432b08001bb7da651bf9d5bfdd901d7c1af9..8d8b69c5664ef7f1eaa89c8a19139152ca159477 100644 (file)
@@ -3036,7 +3036,7 @@ static int selinux_file_mmap(struct file *file, unsigned long reqprot,
         * at bad behaviour/exploit that we always want to get the AVC, even
         * if DAC would have also denied the operation.
         */
-       if (addr < mmap_min_addr) {
+       if (addr < CONFIG_LSM_MMAP_MIN_ADDR) {
                rc = avc_has_perm(sid, sid, SECCLASS_MEMPROTECT,
                                  MEMPROTECT__MMAP_ZERO, NULL);
                if (rc)