Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandboxing support? #60

Open
jfahrenkrug opened this issue May 9, 2012 · 7 comments
Open

Sandboxing support? #60

jfahrenkrug opened this issue May 9, 2012 · 7 comments

Comments

@jfahrenkrug
Copy link
Contributor

I'm using iMedia in an app and I want to/have to activate Application Sandboxing for my app.
When activating the Pictures Folder Access and the User Selected File Assets entitlements (those were the ones that I thought made sense), neither the Lightroom nor the iPhoto libraries show up.

Does that basically mean that we can basically forget using iMedia in Mac App Store apps starting June 1st?

In Console.app, I get these Sandbox messages:

09.05.12 17:21:58,778 sandboxd: ([32133]) PrinTao(32133) deny file-read-data /Users/johannes
09.05.12 17:21:58,779 sandboxd: ([32133]) PrinTao(32133) deny file-read-data /Users

Any ideas? Will we only be able to use iMedia with files that the user explicitly selects through an Open Panel? That would basically render it as being useless, doesn't it?

@mikeabdullah
Copy link
Collaborator

We're working on moving to a combination of XPC+temporary entitlement to have the framework work better under sandboxing. In the shorter term, a temporary entitlement for the necessary app preferences, and matching adjustment to the code is required. I'll be sorting that soon too.

@jfahrenkrug
Copy link
Contributor Author

Great, thanks for the info, Mike!

@mikeabdullah
Copy link
Collaborator

If you want to check it out, the sandbox-compatibility branch is nearly done. Search the headers for SANDBOXING: to see all the comments and temporary entitlements you'll need.

@yoavhacohen
Copy link

I'm trying to use the sandbox-compatibility branch, and I think that I found a bug:

  1. Drag a folder located outside the allowed scope of the app.
  2. Turn off the app and open it again.
  3. iMedia should remember this folder, but it does not have permissions to read it now.

I think that a possible solution is to use app-scoped bookmark:
http://developer.apple.com/library/mac/#documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html#//apple_ref/doc/uid/TP40011183-CH3-SW16

@jfahrenkrug
Copy link
Contributor Author

@yoavhacohen app-scoped bookmarks are the only way to make this work.

@yoavhacohen
Copy link

OK, so is it planned to fix this issue by using app-scoped bookmarks?

@mikeabdullah
Copy link
Collaborator

It is indeed. I just haven't had time yet. You're welcome to send me a patch for it.

danielpunkass pushed a commit to danielpunkass/iMedia that referenced this issue May 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants