summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2017-03-08 19:37:27 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2017-03-08 19:37:27 +0000
commit8d8140a8ef115e04e33b371164da0a6181d9ac69 (patch)
tree59a3cbe6c92ab943023845bcd4ff3154541241d9
parent0389a098a1cf6ae43b63ac0166051995295d735c (diff)
start-container-docker.sh: Use --cap-add=SYS_PTRACE when starting docker.
This is needed for gdb and gcc's guality tests (which use gdb). Change-Id: I83467b84f4ce4cc3c400eaeb17d96f8288946891
-rwxr-xr-xstart-container-docker.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh
index 5f63d54f..fd05b224 100755
--- a/start-container-docker.sh
+++ b/start-container-docker.sh
@@ -116,10 +116,14 @@ esac
DOCKER="docker -H $session_host:2375"
$DOCKER pull $image
-SECURITY=
+SECURITY="--cap-add=SYS_PTRACE"
case ${container_arch} in
i386)
- SECURITY="--security-opt seccomp:unconfined"
+ # We need this because of a bug in libgo's configure script:
+ # it would crash when testing "whether setcontext clobbers TLS
+ # variables", and report neither "no" nor "yes", later making
+ # configure fail.
+ SECURITY="${SECURITY} --security-opt seccomp:unconfined"
;;
esac