]> git.baikalelectronics.ru Git - kernel.git/commit
coredump: warn about unsafe suid_dumpable / core_pattern combo
authorKees Cook <keescook@chromium.org>
Mon, 30 Jul 2012 21:39:18 +0000 (14:39 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:11 +0000 (17:25 -0700)
commit8a3e33228c51cee34f74a2e6cd02f72f36447c13
tree6d174fb95516f01e385d31d5ef87a248d8740fd2
parenteb497e28b0f49e254bfa36bc863e4981aa403fe0
coredump: warn about unsafe suid_dumpable / core_pattern combo

When suid_dumpable=2, detect unsafe core_pattern settings and warn when
they are seen.

Signed-off-by: Kees Cook <keescook@chromium.org>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Alan Cox <alan@linux.intel.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Doug Ledford <dledford@redhat.com>
Cc: Serge Hallyn <serge.hallyn@canonical.com>
Cc: James Morris <james.l.morris@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c
include/linux/sched.h
kernel/sysctl.c