HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Problem with ptrace() in 10.20
Operating System - HP-UX
1826496
Members
2832
Online
109692
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
03-03-2002 01:26 PM
03-03-2002 01:26 PM
Problem with ptrace() in 10.20
Dear all,
during the last weeks I've been working on a port of The Coroners Toolkit (TCT) to HP-UX 10.20. Details about the port can be found in a message that I posted to the security forum last week.
During the port the following problem turned up:
The pcat program in TCT uses ptrace(READDATA) to copy the TEXT,
DATA and STACK segment of a process for later analysis by the
investigator. It returns with EIO when trying to read the STACK area
of the init process (PID==1). I observed the same behaviour with
processes running "/bin/sh" and "/usr/dt/bin/dtrc". The inital
ptrace(ATTACH) works fine as do the read operations on the TEXT and
DATA segments. I know that OpenBSD and Linux flat out refuse a
ptrace(ATTACH) to the init process for security reasons, but this
seems to be a slightly different issue here. I also looked at the
pst_vm_status.pst_flags and the pst_vm_status.pst_permission bits
returned for each segment by pstat_getprocvm, but I can't see any
differences between these "troublemaking" processes and others.
Any help on this issue is greatly appreciated.
during the last weeks I've been working on a port of The Coroners Toolkit (TCT) to HP-UX 10.20. Details about the port can be found in a message that I posted to the security forum last week.
During the port the following problem turned up:
The pcat program in TCT uses ptrace(READDATA) to copy the TEXT,
DATA and STACK segment of a process for later analysis by the
investigator. It returns with EIO when trying to read the STACK area
of the init process (PID==1). I observed the same behaviour with
processes running "/bin/sh" and "/usr/dt/bin/dtrc". The inital
ptrace(ATTACH) works fine as do the read operations on the TEXT and
DATA segments. I know that OpenBSD and Linux flat out refuse a
ptrace(ATTACH) to the init process for security reasons, but this
seems to be a slightly different issue here. I also looked at the
pst_vm_status.pst_flags and the pst_vm_status.pst_permission bits
returned for each segment by pstat_getprocvm, but I can't see any
differences between these "troublemaking" processes and others.
Any help on this issue is greatly appreciated.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2002 02:55 AM
07-12-2002 02:55 AM
Re: Problem with ptrace() in 10.20
Problem solved. I was actually trying to read the wrong memory region, because the STACK memory region grows "upward" from the address given by pstat_getprocvm. I asssumed it grew "downward" as many stacks do so on many architectures, but in HP-UX it is not the case.
Best regards,
Knut Eckstein
Best regards,
Knut Eckstein
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