HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Secure OS Software for Linux
- >
- strace under mcga??
Secure OS Software for Linux
1828038
Members
1975
Online
109973
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 08:38 AM
04-02-2002 08:38 AM
strace under mcga??
I was trying to wrap a cgi binary with a script that calls strace ie. replace the binary with a script like so.
#!/bin/bash
/usr/bin/strace -o /tmp/output /path/to/renamed/binary
All I get in the strace log is
execve("/path/to/renamed/binary", ["/path/to/renamed/binary"], [/* 32 vars */]) = 0
Anyone know how to set this up correctly?
The wrap works fine if you run it from a shell in the mcga compartment.
Thanks,
Kevin
#!/bin/bash
/usr/bin/strace -o /tmp/output /path/to/renamed/binary
All I get in the strace log is
execve("/path/to/renamed/binary", ["/path/to/renamed/binary"], [/* 32 vars */]) = 0
Anyone know how to set this up correctly?
The wrap works fine if you run it from a shell in the mcga compartment.
Thanks,
Kevin
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2002 10:36 AM
04-03-2002 10:36 AM
Re: strace under mcga??
Kevin,
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.
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.
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.
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.
My cgi was very simple wrapper for /bin/ls
Here is a section of the strace info for mcga:
1113 execve("/usr/bin/strace",["/usr/bin/strace","-o","/tmp/ls.out",
"/bin/ls","-l"],[/* 29 vars */])=-1 ENOSYS(Function not implemented)
1113 execve(0x80d0fcc, [0x80d2bcc], [/* 0 vars */]) = -1 ENOSYS(Function not implemented)
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.
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.
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.
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.
My cgi was very simple wrapper for /bin/ls
Here is a section of the strace info for mcga:
1113 execve("/usr/bin/strace",["/usr/bin/strace","-o","/tmp/ls.out",
"/bin/ls","-l"],[/* 29 vars */])=-1 ENOSYS(Function not implemented)
1113 execve(0x80d0fcc, [0x80d2bcc], [/* 0 vars */]) = -1 ENOSYS(Function not implemented)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 01:31 PM
04-09-2002 01:31 PM
Re: strace under mcga??
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.
do what you can. don't if you can't.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP