Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Mark /proc MS_NOSUID and MS_NOEXEC

Not that we really need this any more, but at the same time there's no
reason not to do this.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>

+1 -1
+1 -1
fs/proc/inode.c
··· 192 192 { 193 193 struct inode * root_inode; 194 194 195 - s->s_flags |= MS_NODIRATIME; 195 + s->s_flags |= MS_NODIRATIME | MS_NOSUID | MS_NOEXEC; 196 196 s->s_blocksize = 1024; 197 197 s->s_blocksize_bits = 10; 198 198 s->s_magic = PROC_SUPER_MAGIC;