From 5d8ecee0accf07f5f20df99be3472e54f7f63f0f Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Sat, 10 Apr 2021 08:08:42 +0100 Subject: [PATCH] docker-test: use host cgroup & network ns The test/zdtm_mount_cgroups script fails with 'permission denied' when running tests with private cgroup namespace. Using the host network namespace allows us to test criu as if it is running on the host, sharing iptables rules etc. Signed-off-by: Radostin Stoyanov --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 66db87c92..7d3d00cdc 100644 --- a/Makefile +++ b/Makefile @@ -373,7 +373,8 @@ docker-build: .PHONY: docker-build docker-test: - docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-x86_64 ./test/zdtm.py run -a -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup + docker run --rm -it --privileged -v /lib/modules:/lib/modules --network=host --cgroupns=host criu-x86_64 \ + ./test/zdtm.py run -a -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup .PHONY: docker-test help: