Re: Coredump when program run as root?

From: Michael Tokarev
Date: Sat Apr 16 2005 - 17:46:53 EST


Ralf Hildebrandt wrote:
I found this while trying to find out why squid doesn't produce a core
file:

http://lists.samba.org/archive/samba-technical/2002-August/023576.html

Most UNIX variants disable core dumps in programs that have changed their
uid or euid during operation. This includes Solaris and Linux.

Well, squid does exactly that. How can I still get a coredump? I really
need one. Kernel 2.6.11.7

Not in stock kernel, no.
There's a patch in -ac series which implements 'suid_dumpable' attribute.
It is included with RedHat kernels I think.
The fun stuff is that I wasn't able to use the functionality anyway (i
had similar but a bit worse problem) -- regardless of how hard i tried,
it didn't produce any core dumps ;)

/mjt

P.S. Hi, Ralf! The world is too small! ;)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/