Hi,
My Requirement is pretty different actually. I am looking for the core generation for setuid processes. where my webserver parent process is running as root and child process running in different id.
I use HP-UX 11.11.
Here is the work around for generating core.
A process with an effective user ID different from its real user ID does not produce a core image.
setuid of course changes the effective uid, which prevents a core file
HP-UX 11.11 has an enhanced core product that adds support for core to be dumped of pink processes.
This kernel functionality is built into HP-UX 11.23.
Enhanced Core:
Hewlett-Packard Co. states:
Overview
This product contains kernel support to dump core of a setuid/setgid process (whose effective user/group ID is
different from it's real user/group ID). To do so, first another root process should become the debugger of this
process using the ttrace(2) system call. Then the debugger process can request core of this process using the
TT_PROC_CORE request of the ttrace(2) system call. The core file produced will have root credentials and
permission for root to read and write.