I am trying to get a setuid-root process to core dump when
calling abort() or receiving "core" signals (Solaris 2.5).
Under Solaris 2.5, man core(4) says:
A process with an effective user ID different from the
real user ID will not produce a core image.
This indeed seems to be the case.
If, in the setuid-root program, after I've done all the
necessary "root" functionality, I reset the euid to ruid with:
setuid(getuid());
I still do not get a core dump if I send it a "core" action
signal. Despite "ps" and "/usr/proc/bin/pcred" showing that
euid == ruid.
All the write persmissions in directories & ulimits, etc,
are okay.
A get a core if I remove the "setuid-root" bit and then send
it a "core" signal (eg kill -4 <pid>).
Does anyone know any other "setuid-root" reasons why a core
file is not dumped?
--
+-------------------------------------------------------------+
| Alcatel Bell, phone: +32 3 829 5130 |
| Space Dept. RS31, fax: +32 3 829 5502 |
| Berkenrodelei 33, |
| 2660 Hoboken, Belgium. |
+-------------------------------------------------------------+