]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
core.5, proc.5: Clarify suid_dumpable versus core_pattern
authorKees Cook <keescook@chromium.org>
Sat, 12 Jan 2013 10:30:24 +0000 (11:30 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 12 Jan 2013 10:30:24 +0000 (11:30 +0100)
In Linux 3.6, additional requirements were placed on core_pattern
when suid_dumpable is set to 2. Document this and include commit
references.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man5/core.5
man5/proc.5

index 379082d91edbd2fc5136b6715cb2b2bec3144f75..1d527b72b34834e5a18ae183c13e6527560443c8 100644 (file)
@@ -176,6 +176,14 @@ file contains the value 0, then a core dump file is simply named
 If this file contains a nonzero value, then the core dump file includes
 the process ID in a name of the form
 .IR core.PID .
+
+Since version 3.6,
+.\" 9520628e8ceb69fa9a4aee6b57f22675d9e1b709
+if
+.I /proc/sys/fs/suid_dumpable
+is set to 2 ("suidsafe"), the pattern must be either a fully qualified path
+(starting with a leading \(aq/\(aq character) or a pipe, as defined below.
+
 .SS Piping core dumps to a program
 Since kernel 2.6.19, Linux supports an alternate syntax for the
 .I /proc/sys/kernel/core_pattern
index 2f8dc115a4eefe1c986e4affb596d08c06fcfd15..b352e61f92c260836ae828cd098812c10bcb30ec 100644 (file)
@@ -2481,6 +2481,13 @@ For security reasons core dumps in this mode will not overwrite one
 another or other files.
 This mode is appropriate when administrators are
 attempting to debug problems in a normal environment.
+Additionally, since Linux 3.6,
+.\" 9520628e8ceb69fa9a4aee6b57f22675d9e1b709
+.I /proc/sys/kernel/core_pattern
+must either be a fully-qualified path, or a pipe command, as detailed in
+.BR core (5).
+Warnings will be emitted to the kernel syslog about disallowed combinations.
+.\" 54b501992dd2a839e94e76aa392c392b55080ce8
 .TP
 .I /proc/sys/fs/super-max
 This file