diff options
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r-- | fs/proc/root.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c index 68feb0f70e63..361ab4ee42fc 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -134,6 +134,8 @@ static struct dentry *proc_mount(struct file_system_type *fs_type, | |||
134 | } | 134 | } |
135 | 135 | ||
136 | sb->s_flags |= MS_ACTIVE; | 136 | sb->s_flags |= MS_ACTIVE; |
137 | /* User space would break if executables appear on proc */ | ||
138 | sb->s_iflags |= SB_I_NOEXEC; | ||
137 | } | 139 | } |
138 | 140 | ||
139 | return dget(sb->s_root); | 141 | return dget(sb->s_root); |