Allow local networking in the darwin sandbox to appease tests

This commit is contained in:
Dan Peebles 2015-03-02 22:55:42 -05:00
parent cffa7f80ab
commit 66d612f1da

View file

@ -2323,6 +2323,9 @@ void DerivationGoal::runChild()
/* Enables getpwuid (used by git and others) */
sandboxProfile += "(allow mach-lookup (global-name \"com.apple.system.notification_center\") (global-name \"com.apple.system.opendirectoryd.libinfo\"))\n";
/* Allow local networking operations, mostly because lots of test suites use it and it seems mostly harmless */
sandboxProfile += "(allow network* (local ip) (remote unix-socket))";
/* Our rwx outputs */
sandboxProfile += "(allow file-read* file-write* process-exec\n";