The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM



Thread: CORE in HP-UX
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 04-25-2008
Krrishv Krrishv is offline
Registered User
 

Join Date: Dec 2006
Location: CA,United States
Posts: 168
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.
Reply With Quote