From 88e89520148b2f95e17ca9348587a28215ffc921 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Thu, 23 Dec 2021 17:35:56 +0000 Subject: [PATCH] kokoro: Fix ASAN build (#76) The VM has been updated to Kokoro 14.04, and now the docker instance requires escalated privileges in order to run some sanitizer builds. --- kokoro/ubuntu/presubmit.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kokoro/ubuntu/presubmit.sh b/kokoro/ubuntu/presubmit.sh index 3fe2af7..3b75439 100755 --- a/kokoro/ubuntu/presubmit.sh +++ b/kokoro/ubuntu/presubmit.sh @@ -19,7 +19,9 @@ set -e # Fail on any error. ROOT_DIR=`pwd` SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )" +# --privileged is required for some sanitizer builds, as they seem to require PTRACE privileges docker run --rm -i \ + --privileged \ --volume "${ROOT_DIR}:${ROOT_DIR}" \ --volume "${KOKORO_ARTIFACTS_DIR}:/mnt/artifacts" \ --workdir "${ROOT_DIR}" \