diff options
author | Steven Perron <stevenperron@google.com> | 2021-12-08 23:26:29 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 23:26:29 +0300 |
commit | 438096e0c2524d8733aea6e9d56dc47921eedc79 (patch) | |
tree | 5e7e1fcc2a48e384b4b2072f67d44ed02622ff08 /kokoro | |
parent | 64328e94dbd1512b342546377980f08ec4068044 (diff) |
Fix kokoro asan run (#4655)
With a change in the VM, the kokoro asan run is failing because it does
not have the correct permissions. Adding the ptrace capability will
hopefully fix that.
Diffstat (limited to 'kokoro')
-rw-r--r-- | kokoro/scripts/linux/build.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kokoro/scripts/linux/build.sh b/kokoro/scripts/linux/build.sh index 4731ebdc2..85d4b61ab 100644 --- a/kokoro/scripts/linux/build.sh +++ b/kokoro/scripts/linux/build.sh @@ -26,7 +26,9 @@ COMPILER=$2 TOOL=$3 BUILD_SHA=${KOKORO_GITHUB_COMMIT:-$KOKORO_GITHUB_PULL_REQUEST_COMMIT} +# "--privileged" is required to run ptrace in the asan builds. docker run --rm -i \ + --privileged \ --volume "${ROOT_DIR}:${ROOT_DIR}" \ --volume "${KOKORO_ARTIFACTS_DIR}:${KOKORO_ARTIFACTS_DIR}" \ --workdir "${ROOT_DIR}" \ |