From: Alan Cox Date: Tue, 17 Apr 2007 05:53:13 +0000 (-0700) Subject: exec.c: fix coredump to pipe problem and obscure "security hole" X-Git-Tag: v2.6.21~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4bbafda70a0fc95c6595bffd6825ef264050d01;p=pandora-kernel.git exec.c: fix coredump to pipe problem and obscure "security hole" The patch checks for "|" in the pattern not the output and doesn't nail a pid on to a piped name (as it is a program name not a file) Also fixes a very very obscure security corner case. If you happen to have decided on a core pattern that starts with the program name then the user can run a program called "|myevilhack" as it stands. I doubt anyone does this. Signed-off-by: Alan Cox Confirmed-by: Christopher S. Aker Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed