aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/sandbox/SandboxOptions.java
diff options
context:
space:
mode:
authorGravatar Philipp Wollermann <philwo@google.com>2017-03-24 09:47:11 +0000
committerGravatar Yue Gan <yueg@google.com>2017-03-24 12:20:06 +0000
commit3e2329a73ffd5d60e5e2babe60ebe5bf322c07da (patch)
treeb1a66c81c4e59eedc84fb28bc8a02ec68fe3ed73 /src/main/java/com/google/devtools/build/lib/sandbox/SandboxOptions.java
parent2879971666e0cc3f1f24ae91b88c4400af77e7f3 (diff)
sandbox: Remove the flag --sandbox_block_path.
It is in the way of optimizing the performance of the sandbox, because it requires us to create two helper files (an unreadable file and an unreadable directory) which are bind-mounted on top of paths specified via this flag. These two helper files were created on a tmpfs mounted by the sandbox until now, which ensured that they were automatically deleted on exit. However, mounting tmpfs on /dev/shm or /tmp causes issues like #2686 or #1882. By removing this flag, we can get rid of the two helper files, which means we can also remove the reliance on a "sandbox temp directory" completely in the next change. -- PiperOrigin-RevId: 151107496 MOS_MIGRATED_REVID=151107496
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/sandbox/SandboxOptions.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/sandbox/SandboxOptions.java9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/sandbox/SandboxOptions.java b/src/main/java/com/google/devtools/build/lib/sandbox/SandboxOptions.java
index 0618c85b07..303ec0fc46 100644
--- a/src/main/java/com/google/devtools/build/lib/sandbox/SandboxOptions.java
+++ b/src/main/java/com/google/devtools/build/lib/sandbox/SandboxOptions.java
@@ -94,15 +94,6 @@ public class SandboxOptions extends OptionsBase {
public boolean sandboxFakeHostname;
@Option(
- name = "sandbox_block_path",
- allowMultiple = true,
- defaultValue = "",
- category = "config",
- help = "For sandboxed actions, disallow access to this path."
- )
- public List<String> sandboxBlockPath;
-
- @Option(
name = "sandbox_tmpfs_path",
allowMultiple = true,
defaultValue = "",