<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: No core dump after setuid in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411667#M861022</link>
    <description>I used signal 3 (Terminate with core dump). And yes, there is enough room on working directory.  (It dumps core ok if I run it as normal user; it can be run and dump core ok as normal user without libpcap feature )</description>
    <pubDate>Mon, 01 Nov 2004 07:32:39 GMT</pubDate>
    <dc:creator>Timo J</dc:creator>
    <dc:date>2004-11-01T07:32:39Z</dc:date>
    <item>
      <title>No core dump after setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411665#M861020</link>
      <description>Is there any way to produce core dump after setuid? User X is running process Y, which is owned by root:sys with suid-bit on. (Process Y needs access to /dev/dlpi through libpcap). &lt;BR /&gt;&lt;BR /&gt;When killing process Y, no core dump is produced. If it's not possible,  what would be the best way to allow user X to access /dev/dlpi? (No, I won't change the ownership of that file ;| )&lt;BR /&gt;&lt;BR /&gt;(Regarding to archives, there's no way to get core on this situation...)</description>
      <pubDate>Mon, 01 Nov 2004 07:18:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411665#M861020</guid>
      <dc:creator>Timo J</dc:creator>
      <dc:date>2004-11-01T07:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: No core dump after setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411666#M861021</link>
      <description>Which signal ou used?? did you try kill -6 "process"&lt;BR /&gt;Make sure you have enough space in current working dir.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Mon, 01 Nov 2004 07:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411666#M861021</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-11-01T07:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: No core dump after setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411667#M861022</link>
      <description>I used signal 3 (Terminate with core dump). And yes, there is enough room on working directory.  (It dumps core ok if I run it as normal user; it can be run and dump core ok as normal user without libpcap feature )</description>
      <pubDate>Mon, 01 Nov 2004 07:32:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411667#M861022</guid>
      <dc:creator>Timo J</dc:creator>
      <dc:date>2004-11-01T07:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: No core dump after setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411668#M861023</link>
      <description>This is normal behavior. To quote from the man 4 core manpage "A process with an effective user ID different from its real user ID does not produce a core image." Your setuid is not changing the real user id. Man 2 setuid for details and a possible workaround via 2 setuid() calls.&lt;BR /&gt;</description>
      <pubDate>Mon, 01 Nov 2004 11:29:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411668#M861023</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-11-01T11:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: No core dump after setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411669#M861024</link>
      <description>The kernel prevents setuid or setgid programs from dumping core.  There just isn't a way around it.  In older HP-UX releases there was a kernel variable you could poke that would allow it, but I believe that feature was removed. &lt;BR /&gt;&lt;BR /&gt;The typical way of handling the issue you talk about - access to a device - is usually handled by a wrapper program.   For example, in HP-UX, /usr/bin/X11/X is a wrapper that will call the 'real' Xserver - Xhp or Xf86.  Only /usr/bin/X11/X is setuid and that only in a limited area.   This is a common technique also seen in Linux OS as well.</description>
      <pubDate>Tue, 02 Nov 2004 08:13:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411669#M861024</guid>
      <dc:creator>Rick Beldin</dc:creator>
      <dc:date>2004-11-02T08:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: No core dump after setuid</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411670#M861025</link>
      <description>Due to major security risks there is not a SUPPORTED way of doing this. However:&lt;BR /&gt;&lt;BR /&gt;# echo "dump_all/W 1" | adb -k -w /stand/vmunix /dev/mem&lt;BR /&gt;&lt;BR /&gt;in some releases of HP-UX will likely do what you want.  (This syntax changes the running kernel but the change disappears on the next reboot.)  Setting dump_all to 0 instead of 1 restores 'normal' behavior.&lt;BR /&gt;&lt;BR /&gt;Again, this is an UNSUPPORTED variable, subject to removal/change at any time without notice.  As with any such patching of kernel memory, use at your own risk!!&lt;BR /&gt;&lt;BR /&gt;I stress that making this change introduces a significant security risk to the system. It may be very helpful as a TEMPORARY change for debugging, but is certainly not a change I would recommend on any system that may be subject to hostile users.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Nov 2004 12:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/no-core-dump-after-setuid/m-p/3411670#M861025</guid>
      <dc:creator>doug hosking</dc:creator>
      <dc:date>2004-11-02T12:45:07Z</dc:date>
    </item>
  </channel>
</rss>

