projects/linux·commit 92d03285

Mark /proc MS_NOSUID and MS_NOEXEC

92d03285 · Linus Torvalds <[email protected]> · 2006-07-15 12:20:05 -07:00

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 <[email protected]>
Commit
92d032855e64834283de5acfb0463232e0ab128e
Parents
2724a1a5

Changes

1 files changed · +1 −1

FileStatusAddDelContent
fs/proc/inode.cmodified+1−1View file

fs/proc/inode.c

View file
diff --git a/fs/proc/inode.c b/fs/proc/inode.c
index 6dcef08..49dfb2a 100644
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -192,7 +192,7 @@ int proc_fill_super(struct super_block *s, void *data, int silent)
{
struct inode * root_inode;
- s->s_flags |= MS_NODIRATIME;
+ s->s_flags |= MS_NODIRATIME | MS_NOSUID | MS_NOEXEC;
s->s_blocksize = 1024;
s->s_blocksize_bits = 10;
s->s_magic = PROC_SUPER_MAGIC;