]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
ci: Allow gdb in containers
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 15 Aug 2019 14:28:31 +0000 (16:28 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 16 Aug 2019 06:49:33 +0000 (08:49 +0200)
The gdb requires ptrace capability, but the way we run containers
now is that they drop every capability. Preserve SYS_PTRACE then.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Makefile.ci

index 8857c953b2661ad33d67c7c69458422ee34a890c..977e0445c62a3e3d96a77f852868aaafa94f84d6 100644 (file)
@@ -167,6 +167,7 @@ CI_ENGINE_ARGS = \
        --volume $(CI_HOST_SRCDIR):$(CI_CONT_SRCDIR):z \
        --workdir $(CI_CONT_SRCDIR) \
        --ulimit nofile=$(CI_ULIMIT_FILES):$(CI_ULIMIT_FILES) \
+       --cap-add=SYS_PTRACE \
        $(NULL)
 
 ci-check-engine: