about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-07-28 20:30:37 -0700
committerAlex Crichton <alex@alexcrichton.com>2017-07-29 13:44:28 -0700
commitb121689c6a0e01cbf95d84334464140a9bef4bba (patch)
treeeaa44334ebd732df9b312ff95910fadd348bd26a
parent126321e2e505ea07887134ffe63afc759a8b7e9f (diff)
downloadrust-b121689c6a0e01cbf95d84334464140a9bef4bba.tar.gz
rust-b121689c6a0e01cbf95d84334464140a9bef4bba.zip
Flag docker invocations as --privileged on CI
When upgrading to LLVM 5.0 it was found that the leak sanitizer tests were
failing with fatal errors, but they were passing locally when run. Turns out it
looks like they may be using new ptrace-like syscalls so the docker container
now needs `--privileged` when executing to complete the test.
-rwxr-xr-xsrc/ci/docker/run.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ci/docker/run.sh b/src/ci/docker/run.sh
index da74ffb41ff..d3f339bc15f 100755
--- a/src/ci/docker/run.sh
+++ b/src/ci/docker/run.sh
@@ -67,6 +67,13 @@ else
     args="$args --env SCCACHE_DIR=/sccache --volume $HOME/.cache/sccache:/sccache"
 fi
 
+# Run containers as privileged as it should give them access to some more
+# syscalls such as ptrace and whatnot. In the upgrade to LLVM 5.0 it was
+# discovered that the leak sanitizer apparently needs these syscalls nowadays so
+# we'll need `--privileged` for at least the `x86_64-gnu` builder, so this just
+# goes ahead and sets it for all builders.
+args="$args --privileged"
+
 exec docker \
   run \
   --volume "$root_dir:/checkout:ro" \