vfs: Commit to never having exectuables on proc and sysfs.
[deliverable/linux.git] / mm / nommu.c
index 58ea3643b9e9968a723f498d7df55b34c51a179e..ce17abf087ff5917c5d51177ec4a331a240ed746 100644 (file)
@@ -1035,7 +1035,7 @@ static int validate_mmap_request(struct file *file,
 
                /* handle executable mappings and implied executable
                 * mappings */
-               if (file->f_path.mnt->mnt_flags & MNT_NOEXEC) {
+               if (path_noexec(&file->f_path)) {
                        if (prot & PROT_EXEC)
                                return -EPERM;
                } else if ((prot & PROT_READ) && !(prot & PROT_EXEC)) {
This page took 0.026353 seconds and 5 git commands to generate.