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

Sandbox or CDEvents issue? Parent directories denied access. #29

Open
stephenlind opened this issue Jul 11, 2014 · 2 comments
Open

Sandbox or CDEvents issue? Parent directories denied access. #29

stephenlind opened this issue Jul 11, 2014 · 2 comments

Comments

@stephenlind
Copy link

First of all, let me commend you on functional, well-packaged and documented code!

I'm considering using CDEvents to monitor directories in a sandboxed app. This seems to work well, provided that you access the correct type of security scoped urls.

However, when the app accesses a directory, the parent directories seem to fire off some access request, which is denied by the sandbox. This doesn't seem to break anything I care about, but it is worrisome to see such logging in the console:

The security-scoped url I am accessing and watching with CDEvents is /Users/steve/Desktop/myFolder.

When I begin the even stream in CDEvents, these lines are logged to the console:

7/10/14 3:29:04.000 PM kernel[0]: Sandbox: Draft Control(67135) deny file-read-data /Users/steve/Desktop
7/10/14 3:29:04.000 PM kernel[0]: Sandbox: Draft Control(67135) deny file-read-data /Users/steve
7/10/14 3:29:04.000 PM kernel[0]: Sandbox: Draft Control(67135) deny file-read-data /Users

The key here is that these parent folders are not being watched and CDEvents should not be attempting to access them.

I haven't looked into the CDEvents code yet, but will do so to try to find the issue.

@rastersize
Copy link
Owner

That’s interesting and indeed a worrisome. If you find the issue (and it’s with CDEvents) a pull request will be greatly appreciated!

I’ll try to look into it in the coming week as well unless you’re able to find the cause.

(Thanks by the way 😃)

@digitalmoksha
Copy link

I'm noticing the exact same problem. Did either of you figure anything out?

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