1
0
Files
linux/fs
Djalal Harouni 32ed74a4b9 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>
2014-04-07 16:36:05 -07:00
..
2014-02-17 12:37:13 -08:00
2014-02-14 11:54:44 -06:00
2014-01-25 03:14:05 -05:00
2014-04-07 16:35:49 -07:00
2014-04-07 16:36:05 -07:00
2014-02-20 14:54:28 +01:00
2014-04-01 17:08:43 +02:00
2014-04-07 16:35:53 -07:00
2014-02-07 16:08:57 -08:00
2014-02-07 16:08:57 -08:00
2014-03-30 19:18:51 -04:00
2014-03-30 19:18:51 -04:00
2014-03-30 19:18:51 -04:00
2014-03-30 19:18:51 -04:00
2014-01-22 19:36:57 +01:00