summaryrefslogtreecommitdiff
path: root/fs/ext4
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2014-04-08 02:38:38 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-04-08 03:36:05 +0400
commit32ed74a4b968a4faff7aaaff557035ce5d5e70ab (patch)
treec03255e24b352eadc03c568a91ea205aac782879 /fs/ext4
parent35a35046e4f9d8849e727b0e0f6edac0ece4ca6e (diff)
downloadlinux-32ed74a4b968a4faff7aaaff557035ce5d5e70ab.tar.xz
procfs: make /proc/*/pagemap 0400
The /proc/*/pagemap contain sensitive information and currently its mode is 0444. Change this to 0400, so the VFS will prevent unprivileged processes from getting file descriptors on arbitrary privileged /proc/*/pagemap files. This reduces the scope of address space leaking and bypasses by protecting already running processes. Signed-off-by: Djalal Harouni <tixxdz@opendz.org> Acked-by: Kees Cook <keescook@chromium.org> Acked-by: Andy Lutomirski <luto@amacapital.net> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Ingo Molnar <mingo@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions