diff options
author | Kees Cook <[email protected]> | 2012-04-04 11:40:19 -0700 |
---|---|---|
committer | James Morris <[email protected]> | 2012-04-05 14:51:43 +1000 |
commit | 620f6e8e855d6d447688a5f67a4e176944a084e8 (patch) | |
tree | 2be8f032eefc0d3bdaf9a045bd9263da4a2c6823 /net/lapb/lapb_timer.c | |
parent | 6c216ec636f75d834461be15f83ec41a6759bd2b (diff) |
sysctl: fix write access to dmesg_restrict/kptr_restrict
Commit bfdc0b4 adds code to restrict access to dmesg_restrict,
however, it incorrectly alters kptr_restrict rather than
dmesg_restrict.
The original patch from Richard Weinberger
(https://lkml.org/lkml/2011/3/14/362) alters dmesg_restrict as
expected, and so the patch seems to have been misapplied.
This adds the CAP_SYS_ADMIN check to both dmesg_restrict and
kptr_restrict, since both are sensitive.
Reported-by: Phillip Lougher <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Acked-by: Serge Hallyn <[email protected]>
Acked-by: Richard Weinberger <[email protected]>
Cc: [email protected]
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions