Re: Protected Memory
Re: Protected Memory
- Subject: Re: Protected Memory
- From: Steve Checkoway <email@hidden>
- Date: Tue, 14 Feb 2006 16:15:22 -0800
On Feb 14, 2006, at 2:51 PM, William Riley-Land wrote:
Hi, I haven't posted here before. So, nice to meet you all and
hope this isn't off topic :)
Hi.
I was wondering if it is possible at all for one userland
application to access another application's memory space. By
"userland" I mean non-kernel code... that's the correct term
right? I had a program under OS 9 that could be used to do this
(mostly to cheat at games :)
I understand that under Darwin memory is "protected" and one
application can only use its memory space and/or shared memory
(which I have no idea about at all).
Most modern operating systems do not allow one application to access
memory of another application (apart from shared memory which
requires the processes to cooperate).
Anyway, my secondary question is: can one application access
another's memory?
In general, the answer is no; however, the debugger is able to do so.
Read the man page for ptrace (actually, read the header file /usr/
include/sys/ptrace.h as the man page is missing some information).
I am dissapointed that I have to ask this question, but I could not
find any sort of in-depth documentation of Darwin's memory
management on the Apple site or after doing a bit of Googling...
So, my main question is where can I find that sort of information?
Not sure where this is documented. I suppose there's something in
gdb's source.
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden