projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2724a1a
)
Mark /proc MS_NOSUID and MS_NOEXEC
author
Linus Torvalds
<torvalds@evo.osdl.org>
Sat, 15 Jul 2006 19:20:05 +0000
(12:20 -0700)
committer
Linus Torvalds
<torvalds@evo.osdl.org>
Sat, 15 Jul 2006 19:20:05 +0000
(12:20 -0700)
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>
fs/proc/inode.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/proc/inode.c
b/fs/proc/inode.c
index 6dcef089e18e715f0b38d5ad7de1c05f0845fc13..49dfb2ab783e6f921fdd344f1b6c39ee29cd1935 100644
(file)
--- 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;