Re: Protected Memory
Re: Protected Memory
- Subject: Re: Protected Memory
- From: Tomas Zahradnicky <email@hidden>
- Date: Fri, 24 Feb 2006 00:38:53 +0100
I had a program under OS 9 that could be used to do this (mostly to
cheat at games :)
That programs usually didn't dare to just write and used undocumented
APIs from PrivateInterfaceLib instead.
Why would you need to do that?
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).
Well, most modern OSes allow you to do it through the VM APIs and you
can map a portion of one process's virtual address space into your
own process's address space where you can change it and possibly
write it back if you have the enough privileges to do so, of course.
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.
ptrace can be used too.
Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
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