Security/SELinux: seperate lsm specific mmap_min_addr
[linux-2.6.git] / security / selinux / hooks.c
index 8a78f58..5dee883 100644 (file)
@@ -3040,7 +3040,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)