Re: Rosetta and Code Injection
Re: Rosetta and Code Injection
- Subject: Re: Rosetta and Code Injection
- From: Terry Lambert <email@hidden>
- Date: Wed, 23 Apr 2008 16:57:41 -0700
On Apr 23, 2008, at 11:32 AM, Bob Murphy wrote:
However, mach_star uses routines like vm_allocate() and vm_write()
and thread_create_running() that are implemented in xnu. I figured
this list is a good place to ask about my problem because:
a. The problem I'm having is with how the underpinnings of
thread_create_running() operate in the kernel.
Your fundamental premise here is wrong.
What you are doing is more or less like succeeding sneaking into a
bowling alley, even though you have no bowling ball or bowling shoes:
whatever else happens, you're not going to be doing any bowling.
Rosetta should probably be thought of as a virtual machine or
interpreter. The process you see in "ps", "lsof", "top", etc., is
actually an instance of a Rosetta process, and not really a PPC
process at all. The PPC "process" is the data on which the native
Rosetta process operates.
However, I feel I owe it to the people paying me to examine the
possibility that there is some official, Apple-supported way to do
code-inject a PPC executable running under Rosetta, or that someone
else has succeeded in doing this, before rushing off to do what I
consider a dubious hack. And I thought there might be a faint chance
that Apple might, for some odd reason, support this by some means I
hadn't considered.
No supported way (even if you weren't running under Rosetta).
-- Terry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden