Re: Linux 2.1.125 doesn't dump core on SIGSEGV

Kev (klmitch@mit.edu)
Tue, 20 Oct 1998 16:09:10 EDT


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

Even from inside the kernel?

-- 
Kevin L. Mitchell <klmitch@mit.edu>
-------------------------  -. .---- --.. ..- -..-  --------------------------
http://web.mit.edu/klmitch/www/              (PGP5 keys availiable from here)
   DSS Key ID ED0DB34E: D9BF 0E74 FDCB 43F5 C597  878F 9455 EC24 ED0D B34E
   DH  Key ID 2A2C31D4: 1A77 4BA5 9E32 14AE 87DA  9FEC 7106 FC62 2A2C 31D4

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