Re: prevent a dmg from being seen
Re: prevent a dmg from being seen
- Subject: Re: prevent a dmg from being seen
- From: Jim Luther <email@hidden>
- Date: Mon, 9 Nov 2009 16:04:37 -0800
There's no way to completely keep people from seeing a file system volume other than obfuscation.
So, the best you can do is:
1 - mount(2) the volume with the MNT_DONTBROWSE flag (with mount(1), use the nobrowse option). That tells Mac OS X GUI code to not show the volume in the usual places (on the Desktop, in the sidebar, going to "My Computer", etc).
2 - Mount the volume somewhere besides /Volumes. That makes it less likely that the user will navigate to the volume and see its contents.
In any event, the volume will show up in terminal to the mount(1) command, and if the user uses "Go to folder..." in the Finder and enters the path to the volume, they'll see its content.
Once the volume has been seen by the File Manager or by the new CFURL code (SnowLeopard only), it will also show up in the lists of volumes returned by FSGetVolumeInfo and the CFURL volume enumerator (if the kCFURLEnumeratorSkipInvisibles isn't passed).
- Jim
On Nov 9, 2009, at 3:32 PM, Jim O'Connor wrote:
> Is there a way to keep a dmg from being seen by the user who has show hidden files set to true?
>
> Thanks,
> Jim O'Connor
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden