Re: Linux 2.1.125 doesn't dump core on SIGSEGV

Kurt Garloff (garloff@kg1.ping.de)
Tue, 20 Oct 1998 08:27:42 +0200


On Tue, Oct 20, 1998 at 02:50:44PM +1300, Chris Wedgwood wrote:
> The current code will follow link though, so a hard or soft link to
> /etc/passwd somewhere where you might expect root to dump core is
> still very dangerous.
>
> I think this is probably best solved by stat'ing `core' before:
>
> dentry = open_namei(corefile, O_CREAT | 2 | O_TRUNC, 0600);
> ...

Why not unlinking (removing) core before just like any suid root userspace
program should do before writing anything?

-- 
Kurt Garloff, Dortmund 
<K.Garloff@ping.de>
PGP key on http://student.physik.uni-dortmund.de/homepages/garloff

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/