diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-05-25 16:30:04 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-05-31 14:59:33 -0700 |
commit | 184901135cda8bdcc51cab4f16c401a28a510593 (patch) | |
tree | 106528a314eb37a15ee059379e9e94247152455c /ui/build/sandbox | |
parent | 86a60ae6fad2b07498212a116022ce465e30167b (diff) | |
download | build_soong-184901135cda8bdcc51cab4f16c401a28a510593.tar.gz build_soong-184901135cda8bdcc51cab4f16c401a28a510593.tar.bz2 build_soong-184901135cda8bdcc51cab4f16c401a28a510593.zip |
Revert "Revert "Revert "Revert "Add path interposer""""
This reverts commit 09f4540d667a98e548bf5dfc94784382ebedc963.
Fixes the raw call to net.Listen in the tests to go through the listen()
helper and use the long socket path fallbacks.
Removes the use of timeouts from the tests -- the behaviors being tested
did not rely on timeouts, so removing them will reduce the flakiness if
the build is heavily loading the machine at the same time the test is
running.
Also fixes some potential nil pointer dereferences.
Test: OUT_DIR=<really long> m blueprint_tools
Test: `while .../soong-ui-build-paths/test/test; do sleep 0.01; done` with a build running
Change-Id: I16d44be7517bc415f1c808284088f4ba40df3bfa
Diffstat (limited to 'ui/build/sandbox')
-rw-r--r-- | ui/build/sandbox/darwin/global.sb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/build/sandbox/darwin/global.sb b/ui/build/sandbox/darwin/global.sb index 47d0c434..e32b64b6 100644 --- a/ui/build/sandbox/darwin/global.sb +++ b/ui/build/sandbox/darwin/global.sb @@ -35,6 +35,12 @@ (global-name-regex #"^com\.apple\.distributed_notifications") ; xcodebuild in Soong ) +; Allow suid /bin/ps to function +(allow process-exec (literal "/bin/ps") (with no-sandbox)) + +; Allow path_interposer unix domain socket without logging +(allow network-outbound (literal (string-append (param "OUT_DIR") "/.path_interposer_log"))) + ; Allow executing any file (allow process-exec*) (allow process-fork) |