<?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: HP/UX dynamically load library fail on SetUID program - Bug or Feature? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-dynamically-load-library-fail-on-setuid-program-bug-or/m-p/741980#M97287</link>
    <description>It's a security feature in recent versions of HP-UX; the shared library path environment variables are ignored for setuid/setgid programs, as described in the man page for ld(1).&lt;BR /&gt;&lt;BR /&gt;If you have the September 2005 Quality Pack patch bundle installed, you can specifiy a list of trusted paths in /etc/dld.sl.conf. If a path in an environment variable is a trusted path, it will be searched for libraries as usual. (The usual security caveats apply, of course.)&lt;BR /&gt;&lt;BR /&gt;Andy</description>
    <pubDate>Mon, 22 Jan 2007 04:48:40 GMT</pubDate>
    <dc:creator>BR936864</dc:creator>
    <dc:date>2007-01-22T04:48:40Z</dc:date>
    <item>
      <title>HP/UX dynamically load library fail on SetUID program - Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-dynamically-load-library-fail-on-setuid-program-bug-or/m-p/741979#M97286</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt; &lt;BR /&gt; I seem to be unable to dynamically load libraries when I'm running a setUID program (chmod 4775)&lt;BR /&gt; &lt;BR /&gt; For example my program called "runme" has the following permissions:&lt;BR /&gt; &lt;BR /&gt; -rwsrwxr-x 1 runme sys&lt;BR /&gt; &lt;BR /&gt; When I have the following environment variables set:&lt;BR /&gt; &lt;BR /&gt; LD_LIBRARY_PATH=/opt/oracleinstantclient/instantclient_10_2/&lt;BR /&gt; LD_PRELOAD=/usr/lib/hpux32/libpthread.so.1:/opt/oracleinstantclient/instantclient_10_2/libnnz10.so&lt;BR /&gt; &lt;BR /&gt; The program fails and will not load the library, however, when I remove the setuid permission (chmod 0775 runme) the application works fine.&lt;BR /&gt; &lt;BR /&gt; Question, is this behavior a bug in HP/UX or a feature (security feature perhaps, not letting dynamic libraries load on setuid programs).&lt;BR /&gt; &lt;BR /&gt; My OS:&lt;BR /&gt; $ uname -a&lt;BR /&gt; HP-UX itanic B.11.23 U ia64&lt;BR /&gt; &lt;BR /&gt; Cheers!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. This thread has been moved&amp;nbsp;from Itanium Based - Experts Online Now!!! to HP-UX &amp;gt; languages - HP Forums moderator&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 01:57:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-dynamically-load-library-fail-on-setuid-program-bug-or/m-p/741979#M97286</guid>
      <dc:creator>appx software</dc:creator>
      <dc:date>2013-03-15T01:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX dynamically load library fail on SetUID program - Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-dynamically-load-library-fail-on-setuid-program-bug-or/m-p/741980#M97287</link>
      <description>It's a security feature in recent versions of HP-UX; the shared library path environment variables are ignored for setuid/setgid programs, as described in the man page for ld(1).&lt;BR /&gt;&lt;BR /&gt;If you have the September 2005 Quality Pack patch bundle installed, you can specifiy a list of trusted paths in /etc/dld.sl.conf. If a path in an environment variable is a trusted path, it will be searched for libraries as usual. (The usual security caveats apply, of course.)&lt;BR /&gt;&lt;BR /&gt;Andy</description>
      <pubDate>Mon, 22 Jan 2007 04:48:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-dynamically-load-library-fail-on-setuid-program-bug-or/m-p/741980#M97287</guid>
      <dc:creator>BR936864</dc:creator>
      <dc:date>2007-01-22T04:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: HP/UX dynamically load library fail on SetUID program - Bug or Feature?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/hp-ux-dynamically-load-library-fail-on-setuid-program-bug-or/m-p/741981#M97288</link>
      <description>Great, thanks much.</description>
      <pubDate>Mon, 22 Jan 2007 08:18:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/hp-ux-dynamically-load-library-fail-on-setuid-program-bug-or/m-p/741981#M97288</guid>
      <dc:creator>appx software</dc:creator>
      <dc:date>2007-01-22T08:18:14Z</dc:date>
    </item>
  </channel>
</rss>

