New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Sandbox docs?


Post Reply New Thread Subscribe

 
Thread Tools
jnojr

 
jnojr's Avatar
 
Member Since: Aug 11, 2012
Location: San Diego, CA
Posts: 85
jnojr will become famous soon enough

jnojr is offline
Where are some useful sandbox docs?

I have a wrapper for 'sudo' which calls this policy:

(version 1)
;; (debug deny)
(allow default)
(deny file-write*)
(allow file-write*
(regex
"^(/private)?/dev/"
"^(/private)?/tmp/"
"^(/private)?/var/tmp/"
"^/opt/remote"
))
(deny file-read* file-read-data
(regex
"^/Users"
"^/Volumes"
"^/Developer"
))

However, sudo doesn't work. Commenting out 'debug deny' got me this hint:

sandbox-exec(37760) deny forbidden-exec-sugid

For giggles, I tried:

(allow forbidden-exec-sugid)

That earned me:

sandbox-exec: line 4: unbound variable: forbidden-exec-sugid


I've been Googling for docs that explain all of the possible options but came up dry. The man pages sure don't help much.
QUOTE Thanks

Post Reply New Thread Subscribe


« Blinking question mark, windows sees unallocated drive. | time machine problems »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
3rd imac in 5 wks, sound issues docs blank newbymac OS X - Operating System 37 11-09-2011 02:33 PM
Docs created on Mac not in iCloud wsd73 iOS and Apps 4 10-15-2011 11:17 PM
Making a revertable Snow Leopard sandbox summersab OS X - Operating System 0 08-18-2011 10:48 AM
problem with saving docs bcilia OS X - Operating System 3 12-20-2009 06:51 PM
App for editing MobileMe docs on iPhone BettyGF iOS and Apps 3 10-22-2009 11:21 PM

All times are GMT -4. The time now is 03:59 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?