• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unmounting/ejecting volumes in sandboxed mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unmounting/ejecting volumes in sandboxed mode


  • Subject: Re: Unmounting/ejecting volumes in sandboxed mode
  • From: Oleg Krupnov <email@hidden>
  • Date: Tue, 13 Aug 2013 07:24:42 +0300

Further experiments show that some disks can be ejected under sandbox,
while others cannot. For example, CD, USB sticks, DMGs and some
external drives can be ejected/unmounted, while other external drives
and internal partitions cannot. The rule isn't that simple and seems
to have many exceptions. I've found that some other developers have
discovered this to be a bug of sandbox and filed it to Apple which
ostensibly agreed that was a bug but they haven't fixed it so far.

> Probably not. That seems like a pretty serious operation; I would not
> expect it to be available to sandboxed applications.

With all respect, this sounds like again if Apple doesn't allow
something, ergo you don't need it. There are many situations when apps
may have legitimate needs to eject disks. If it requires a curated
entitlement, Apple should have provided one. It is not a kind of case
when an entitlement would be technically difficult or impossible to
provide. So I tend to think it's a bug indeed.

On Mon, Aug 12, 2013 at 8:21 PM, Kyle Sluder <email@hidden> wrote:
> On Mon, Aug 12, 2013, at 08:28 AM, Oleg Krupnov wrote:
>
>> The "system.volume.internal.unmount entitlement" is not documented,
>
> This is an authorization right, not a sandbox entitlement.
>
>> and when I tried to add it to the list of entitlements, the app fails
>> to start at all, saying not enough permissions.
>>
>> What's going on? Is there a way to eject/unmount disks in sandboxed mode?
>
> Probably not. That seems like a pretty serious operation; I would not
> expect it to be available to sandboxed applications.
>
> --Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Unmounting/ejecting volumes in sandboxed mode (From: Oleg Krupnov <email@hidden>)
 >Re: Unmounting/ejecting volumes in sandboxed mode (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Get file from server with iPad App
  • Next by Date: How to get rid of keyboard on iPhone
  • Previous by thread: Re: Unmounting/ejecting volumes in sandboxed mode
  • Next by thread: index beyond bounds when using a queue for a for-loop
  • Index(es):
    • Date
    • Thread