diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2004-08-23 21:41:58 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-23 21:41:58 -0700 |
| commit | 6ac2d33dd830c905aea80b464201d2945fb7b990 (patch) | |
| tree | be8e7c887c478e89ab9aafcca6e0998c6acefa1a /kernel | |
| parent | b4b67a05cf502b655fa5cfda56e2c0df976ddd84 (diff) | |
[PATCH] fix permissions on the `tainted' sysctl
From: Arjan van de Ven <arjanv@redhat.com>
The patch below sets the tainted sysctl file to read only, otherwise
userspace can just overwrite/reset it.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 4a361348038e..b3fc45ab0d62 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -300,7 +300,7 @@ static ctl_table kern_table[] = { .procname = "tainted", .data = &tainted, .maxlen = sizeof(int), - .mode = 0644, + .mode = 0444, .proc_handler = &proc_dointvec, }, { |
