From: Stéphane Graber Date: Wed, 11 Sep 2013 21:24:32 +0000 (-0700) Subject: coredump: add new %P variable in core_pattern X-Git-Tag: v3.12-rc1~52^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65aafb1e7484b7434a0c1d4c593191ebe5776a2f;p=pandora-kernel.git coredump: add new %P variable in core_pattern Add a new %P variable to be used in core_pattern. This variable contains the global PID (PID in the init namespace) as %p contains the PID in the current namespace which isn't always what we want. The main use for this is to make it easier to handle crashes that happened within a container. With that new variables it's possible to have the crashes dumped into the container or forwarded to the host with the right PID (from the host's point of view). Signed-off-by: Stéphane Graber Reported-by: Hans Feldt Cc: Alexander Viro Cc: Eric W. Biederman Cc: Andy Whitcroft Acked-by: Serge E. Hallyn Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed