Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

So there is prl_disp_service, a Parallels 7 background service that periodically wakes the internal hard drive in my Macbook Pro although it`s unmounted most of the time since I boot from an SSD I replaced the DVD drive with.

For reference: http://forum.parallels.com/showthread.php?t=114974

Is there a way to apply some sandbox-exec profile to this process so it will continue functioning normally but won´t see /dev/disk1* and do stat or something else on it that causes it to wake up?

share|improve this question
    
When I'm not using Parallels, I'm stopping all it's services. –  mspasov Jun 14 '12 at 12:50

1 Answer 1

up vote 1 down vote accepted

Yay, I managed to sandbox prl_disp_service \o/

I put a file named prl_disp_service.sb into /Library/Sandbox/Profiles denying ioctl on disk1 (the harddisk I wanted to prevent from waking):

(version 1)
(allow default)
(debug deny)
(import "system.sb")
(deny file-read* file-ioctl
    (regex "/dev/disk1*"))

And edited /Library/Parallels/Parallels Service.app/Contents/Resources/ParallelsDispatcherService:

sandbox-exec -f /Library/Sandbox/Profiles/prl_disp_service.sb "${ParallelsDispatcherService}" -e --logfile "${LogFile}" --pidfile "${PidFile}" >/dev/null 2>&1 &  
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.