add default seccomp profile tests

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Upstream-commit: a48fe6238494547f392b06adf9d48944b4dd8ac3
Component: engine
This commit is contained in:
Jessica Frazelle
2015-12-21 14:42:58 -08:00
parent b5ffb5a2c4
commit aac8048807
8 changed files with 121 additions and 7 deletions

View File

@ -27,6 +27,7 @@ case "$DOCKER_ENGINE_OSARCH" in
*)
images=(
busybox:latest
debian:jessie
hello-world:latest
jess/unshare:latest
)

View File

@ -0,0 +1,18 @@
#!/bin/bash
set -e
# Build a C binary for cloning a userns for seccomp tests
# and compile it for target daemon
dir="$DEST/userns-test"
mkdir -p "$dir"
(
GOOS=${DOCKER_ENGINE_GOOS:="linux"}
if [ "$GOOS" = "linux" ]; then
cd "$dir"
gcc -g -Wall -static ../../../../contrib/userns-test/main.c -o ./userns-test
cp ../../../../contrib/userns-test/Dockerfile .
docker build -qt userns-test . > /dev/null
fi
)
rm -rf "$dir"

View File

@ -3,3 +3,4 @@
bundle .ensure-emptyfs
bundle .ensure-frozen-images
bundle .ensure-httpserver
bundle .ensure-userns-test