aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Brian Silverman <bsilver16384@gmail.com>2015-11-25 09:15:45 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2015-11-25 10:00:27 +0000
commitd91aa2e54a1f176dade3baf6d27b496ef2e8cf90 (patch)
tree7c161f7eec246145b057ed4cf3607e5329e0e758 /src/main/java
parentcd0881d8b56024ad2157a893609233761946ba11 (diff)
Mount /sbin into the sandbox.
This is necessary to be able to verify that the network sandbox is active using ifconfig, for example. -- Change-Id: Ia3ea16e18cf1d280f31870c867e56336bb48e7bd Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2361 MOS_MIGRATED_REVID=108685498
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java b/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java
index 6e81b1158c..c9da45f70f 100644
--- a/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java
+++ b/src/main/java/com/google/devtools/build/lib/sandbox/LinuxSandboxedStrategy.java
@@ -294,6 +294,7 @@ public class LinuxSandboxedStrategy implements SpawnActionContext {
MountMap mounts = new MountMap();
FileSystem fs = blazeDirs.getFileSystem();
mounts.put(fs.getPath("/bin"), fs.getPath("/bin"));
+ mounts.put(fs.getPath("/sbin"), fs.getPath("/sbin"));
mounts.put(fs.getPath("/etc"), fs.getPath("/etc"));
for (String entry : FilesystemUtils.readdir("/")) {
if (entry.startsWith("lib")) {