Core dumps and being root

Alan Cox (
Mon, 27 Jul 1998 22:23:46 +0100 (BST)

Someone pointed this out on irc and much to my suprise its true.

With 2.1.10x programs run as root by root with uid==gid euid==egid
are not dumpable. So you can't core dump programs as root. This
seems to be because

if (current->euid != current->uid || current->egid != current->gid ||
current->dumpable = 0;

doesn't account for the superuser - who has special rights but shouldnt
be stopped from core dumping as those rights are (in normal unix anyway)
not 'raised' but implicit.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at