Commit 6ac2d33d authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b4b67a05
......@@ -300,7 +300,7 @@ static ctl_table kern_table[] = {
.procname = "tainted",
.data = &tainted,
.maxlen = sizeof(int),
.mode = 0644,
.mode = 0444,
.proc_handler = &proc_dointvec,
},
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment