Re: [PATCH] core file naming option

From: Phil Edwards (
Date: Mon Oct 08 2001 - 16:32:14 EST

After seeing this topic in the Kernel Cousin and reading through the mail
archives, I thought I'd mention a very useful feature that Linux could
steal^H^H^H^H^Hleverage from Solaris: the coreadm(1) program allows users
to set a pattern for core file names, e.g.,


for command foo with pid 1234 dumps core in /var/core/ (to
use the example from the coreadm man page). There're about half a dozen
% patterns.

The root user can set patterns and policies systemwide (e.g., no coredumps
for regular users, dump all corefiles everywhere into a directory readable
only by root, etc, for security reasons). Also, this pattern information
is stored per-process AFAICT, so in my login files I have

    coreadm -p core.%f.%p $$

Meaning that all core files go into the current directory. It gets set
for the shell itself, and all the processes spawned from that shell.

Both as a user and a sysadmin, I've found this to be very very useful.

Anyhow, just a thought. Thanks for reading.


If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Oct 15 2001 - 21:00:20 EST