aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2012-04-04 18:40:19 +0000
committerJames Morris <[email protected]>2012-04-05 04:51:43 +0000
commit620f6e8e855d6d447688a5f67a4e176944a084e8 (patch)
tree2be8f032eefc0d3bdaf9a045bd9263da4a2c6823 /fs/jbd2/commit.c
parentMerge tag 'for_linus-3.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/gi... (diff)
downloadkernel-620f6e8e855d6d447688a5f67a4e176944a084e8.tar.gz
kernel-620f6e8e855d6d447688a5f67a4e176944a084e8.zip
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 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions