projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfs: Commit to never having exectuables on proc and sysfs.
[deliverable/linux.git]
/
mm
/
nommu.c
diff --git
a/mm/nommu.c
b/mm/nommu.c
index 58ea3643b9e9968a723f498d7df55b34c51a179e..ce17abf087ff5917c5d51177ec4a331a240ed746 100644
(file)
--- a/
mm/nommu.c
+++ b/
mm/nommu.c
@@
-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.027938 seconds
and
5
git commands to generate.