]> git.lizzy.rs Git - rust.git/commitdiff
Flag docker invocations as --privileged on CI
authorAlex Crichton <alex@alexcrichton.com>
Sat, 29 Jul 2017 03:30:37 +0000 (20:30 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 29 Jul 2017 20:44:28 +0000 (13:44 -0700)
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.

src/ci/docker/run.sh

index da74ffb41ffcc8698e8143f57b4b7b761cad1638..d3f339bc15f75c0c8ba7f70a621a7d21a49e3e84 100755 (executable)
@@ -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" \