Commit 91fcd412e957f433e9f1abeb0b1926dbeb66ca80

Authored by Bastian Blank
Committed by Linus Torvalds
1 parent 94e22e13ad

Allow reading tainted flag as user

The commit 34f5a39899f3f3e815da64f48ddb72942d86c366 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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -1676,7 +1676,7 @@
1676 1676 {
1677 1677 int op;
1678 1678  
1679   - if (!capable(CAP_SYS_ADMIN))
  1679 + if (write && !capable(CAP_SYS_ADMIN))
1680 1680 return -EPERM;
1681 1681  
1682 1682 op = OP_OR;