add default seccomp profile tests
Signed-off-by: Jessica Frazelle <acidburn@docker.com> Upstream-commit: a48fe6238494547f392b06adf9d48944b4dd8ac3 Component: engine
This commit is contained in:
@ -27,6 +27,7 @@ case "$DOCKER_ENGINE_OSARCH" in
|
||||
*)
|
||||
images=(
|
||||
busybox:latest
|
||||
debian:jessie
|
||||
hello-world:latest
|
||||
jess/unshare:latest
|
||||
)
|
||||
|
||||
18
components/engine/hack/make/.ensure-userns-test
Normal file
18
components/engine/hack/make/.ensure-userns-test
Normal 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"
|
||||
@ -3,3 +3,4 @@
|
||||
bundle .ensure-emptyfs
|
||||
bundle .ensure-frozen-images
|
||||
bundle .ensure-httpserver
|
||||
bundle .ensure-userns-test
|
||||
|
||||
Reference in New Issue
Block a user