[launchd-dev] launchd and hdiutils

Damien Sorresso dsorresso at apple.com
Fri Dec 11 10:53:03 PST 2009


On Dec 11, 2009, at 5:10 AM, Thomas Fritz wrote:
> Hi everybody
> 
> I want to use launchd to mount an encrypted dmg image which contains my home directory (AES 256 - enterprise encryption guidelines ) and other directories i want to encrypt like /tmp, etc ... 
> 
> Therefore i created a launchd.plist which starts hdiutils to attach the image. To be able to enter the password, i directed stdin, stderr and stdout to /dev/console.
> 
> Furthermore i modified com.apple.loginwindow.plist to wait until the image is mounted.

Why not just use FileVault?

> Everything seems to work but after I logged in, the images isn't mounted anymore.

It sounds like you mounted the image from a daemon, which runs in a different environment from your user environment. Though I honestly don't know much about how the disk images subsystem works.

> Does anyone has an idea how to solve this problem ?
> 
> By the way, which key derivation algorithm is used to derive the encryption key from the password. 


Try apple-cdsa.
-- 
Damien Sorresso
BSD Engineering
Apple Inc.



More information about the launchd-dev mailing list