How to read virtual address space of another process using vmmap?

We are writing an application that is attempting to read the virtual address space of another process using vmmap. This works with 10.9 but in 10.10 we get the following:


vmmap[18929]: [fatal] unable to ask for permission to examine process; run tool using sudo, or without redirecting stdin and stderr.


Presumably this process (or the user running it) does not have permission to do this--how can we alter the system to allow this or otherwise work around this issue?

In which context are you trying to do this? The ability to examine the address space of other processes is getting increasingly restricted over time (for obvious security reasons). If you're creating a shrink wrap product that you intend to ship to end users, you'll need to consider the potential medium-term compatibility issues and write a bunch of complex code to escalate your privileges appropriately. OTOH if you're just hacking away at something locally, it's relatively easy to get this working.


Share and Enjoy

--

Quinn "The Eskimo!"

Apple Developer Relations, Developer Technical Support, Core OS/Hardware

How to read virtual address space of another process using vmmap?
 
 
Q