Skip to content

Commit

Permalink
Allow reading tainted flag as user
Browse files Browse the repository at this point in the history
The commit 34f5a39 restricted reading
of the tainted value. The attached patch changes this back to a
write-only check and restores the read behaviour of older versions.

Signed-off-by: Bastian Blank <bastian@waldi.eu.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Bastian Blank authored and Linus Torvalds committed Apr 24, 2007
1 parent 94e22e1 commit 91fcd41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sysctl.c
Expand Up @@ -1676,7 +1676,7 @@ static int proc_dointvec_taint(ctl_table *table, int write, struct file *filp,
{
int op;

if (!capable(CAP_SYS_ADMIN))
if (write && !capable(CAP_SYS_ADMIN))
return -EPERM;

op = OP_OR;
Expand Down

0 comments on commit 91fcd41

Please sign in to comment.