Re: Is it possible to figure out if "File Vault" is in use?
Re: Is it possible to figure out if "File Vault" is in use?
- Subject: Re: Is it possible to figure out if "File Vault" is in use?
- From: James Bucanek <email@hidden>
- Date: Tue, 14 Nov 2006 09:14:29 -0700
Andrei Tchijov wrote on Monday, November 13, 2006:
>So basically, answer to my question is true if user's home mounted to
>separate device and this device (in the example above "/dev/disk2s2")
>is "connected" to disk image file. Now, it is easy to detect that
>home is mounted to separate device ( it looks like inode number of
>"root" folder on device is 2 - so if home folder inode number is 2,
>then it is mounted on separate device. Does it sound right?). The
>question is how to (or is it even possible?) figure out that this
>device was "created" as a result of mounting disk image file.
I suspect that that information isn't available. You could try to dig deeper and find out if a disk image uses a different file system plug-in than a regular HFS+ disk, but I doubt it. From your perspective, a mounted File Vault volume is just another HFS+ volume. I'm not sure how you find out what is backing that volume, or if you can even find out.
Personally, the existence of the sparseimage and the fact the user's home folder is mounted on a different device should be sufficient evidence that the user is using File Vault. After all, what's the alternative? That they manually created a mount point for their home folder and just happened to create an invisible sparse image file with the same name as their login account that they aren't using?
It might be worth a look at the NetInfo database. There might be something in the account setup to indicate that File Vault is in use.
--
James Bucanek
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden