Re: Linux 2.1.125 doesn't dump core on SIGSEGV

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 20 Oct 1998 14:15:25 +0100 (BST)


> > 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?

There is an implicit race in doing this. Also suid programs dont dump core.
Just 'real' root stuff. The results are as bad however

-
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/