Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Protected Memory



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:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Protected Memory (From: William Riley-Land <email@hidden>)
 >Re: Protected Memory (From: Steve Checkoway <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.