Subject: Re: core vs seteuid()
To: David Maxwell <david@vex.net>
From: Greg A. Woods <woods@weird.com>
List: netbsd-users
Date: 06/08/2003 17:14:22
[ On Friday, May 30, 2003 at 01:38:19 (-0400), David Maxwell wrote: ]
> Subject: Re: core vs seteuid()
>
> On Fri, May 30, 2003 at 11:17:23AM +0900, Jorgen Lundman wrote:
> > Program calls seteuid() a fair bit, but if it ever dies I need the core to 
> > remove any bugs. I know it may be undesirable to have core files from 
> > seteuid programs in a multi user machine, but since these are dedicated 
> > development machines that is not a concern.
> > 
> > Are there easy ways to make sure it dumps core, _always_? Even if I have to 
> > force them into a special directory or whatever. I would rather not have to 
> > hack at kernel sources and rebuild the kernel too :)
> 
> That's what you'll need to do...

I just remembered there's already a patch to implement a sysctl flag to
allow P_SUGID core dumps in PR#15994.

I haven't tested it against recent sources but it's pretty simple and
can be applied by hand if necessary.

-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>