get core dumps on Linux
peter at helios.de
Tue Apr 27 09:40:15 GMT 2004
The problem described in the nice SAMBA-HOWTO-Collection
that one does not get a core dump on Linux for programs that
did switch uid can be circumvented in user space.
I added the following code snippets to our SMB fileserver PCShare.
I tried to convince the great dictator^H^H^H Linus but failed;)
BTW, the kill() in the sighandler is for SIGABRT - SEGV and BUS
will return to the faulting instruction and immediatly trap again but
not when sending a "kill -11" or likewise.
static void fatal_sighandler(int signum)
/* ensure the core dump is owned by root, but Linux has a flaw here */
More information about the samba-technical