<?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 strace under mcga?? in Secure OS Software for Linux</title>
    <link>https://community.hpe.com/t5/secure-os-software-for-linux/strace-under-mcga/m-p/2695519#M91</link>
    <description>I was trying to wrap a cgi binary with a script that calls strace ie. replace the binary with a script like so.&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;&lt;BR /&gt;/usr/bin/strace -o /tmp/output /path/to/renamed/binary&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All I get in the strace log is&lt;BR /&gt;&lt;BR /&gt;execve("/path/to/renamed/binary", ["/path/to/renamed/binary"], [/* 32 vars */]) = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyone know how to set this up correctly?&lt;BR /&gt;&lt;BR /&gt;The wrap works fine if you run it from a shell in the mcga compartment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kevin</description>
    <pubDate>Tue, 02 Apr 2002 16:38:29 GMT</pubDate>
    <dc:creator>Kevin Swift</dc:creator>
    <dc:date>2002-04-02T16:38:29Z</dc:date>
    <item>
      <title>strace under mcga??</title>
      <link>https://community.hpe.com/t5/secure-os-software-for-linux/strace-under-mcga/m-p/2695519#M91</link>
      <description>I was trying to wrap a cgi binary with a script that calls strace ie. replace the binary with a script like so.&lt;BR /&gt;&lt;BR /&gt;#!/bin/bash&lt;BR /&gt;&lt;BR /&gt;/usr/bin/strace -o /tmp/output /path/to/renamed/binary&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All I get in the strace log is&lt;BR /&gt;&lt;BR /&gt;execve("/path/to/renamed/binary", ["/path/to/renamed/binary"], [/* 32 vars */]) = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Anyone know how to set this up correctly?&lt;BR /&gt;&lt;BR /&gt;The wrap works fine if you run it from a shell in the mcga compartment.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Kevin</description>
      <pubDate>Tue, 02 Apr 2002 16:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/secure-os-software-for-linux/strace-under-mcga/m-p/2695519#M91</guid>
      <dc:creator>Kevin Swift</dc:creator>
      <dc:date>2002-04-02T16:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: strace under mcga??</title>
      <link>https://community.hpe.com/t5/secure-os-software-for-linux/strace-under-mcga/m-p/2695520#M92</link>
      <description>Kevin,&lt;BR /&gt;&lt;BR /&gt;    I have reproduced your problem and made a bit of headway but I still am not able to get strace to work as a wrapper or in a cgi.&lt;BR /&gt;&lt;BR /&gt;The first issue was that strace was having a permission problem with a sealed compartment of mcga, so I modified the /etc/tlinux/init/startup and commented out the sealed section, and restarted the mcga.&lt;BR /&gt;&lt;BR /&gt;After that I straced the mcga process, to see if there were any more permission type problems.  This is where I am stuck, strace gave me a -l ENOSYS when trying to execve the strace command.  See strace snippet at bottom.&lt;BR /&gt;&lt;BR /&gt;I am not sure if the chroot environment is sufficient for strace to run inside of the mcga or if this is a security/permisions issue.&lt;BR /&gt;&lt;BR /&gt;My cgi was very simple wrapper for /bin/ls&lt;BR /&gt;&lt;BR /&gt;Here is a section of the strace info for mcga:&lt;BR /&gt;&lt;BR /&gt;1113  execve("/usr/bin/strace",["/usr/bin/strace","-o","/tmp/ls.out",&lt;BR /&gt;"/bin/ls","-l"],[/* 29 vars */])=-1 ENOSYS(Function not implemented)&lt;BR /&gt;&lt;BR /&gt;1113  execve(0x80d0fcc, [0x80d2bcc], [/* 0 vars */]) = -1 ENOSYS(Function not implemented)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Apr 2002 18:36:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/secure-os-software-for-linux/strace-under-mcga/m-p/2695520#M92</guid>
      <dc:creator>Ron Vladick</dc:creator>
      <dc:date>2002-04-03T18:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: strace under mcga??</title>
      <link>https://community.hpe.com/t5/secure-os-software-for-linux/strace-under-mcga/m-p/2695521#M93</link>
      <description>As an aside, maybe you could try the HP-LX way and use aud_write(3) to collect your information. Provided you have access to the source of your binary.</description>
      <pubDate>Tue, 09 Apr 2002 20:31:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/secure-os-software-for-linux/strace-under-mcga/m-p/2695521#M93</guid>
      <dc:creator>Dan Am</dc:creator>
      <dc:date>2002-04-09T20:31:34Z</dc:date>
    </item>
  </channel>
</rss>

