From f211e09d2cacb705d0a9255b95ed92215c3da44a Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Thu, 3 Dec 2020 15:23:02 +0100 Subject: [PATCH] helper: Reproduce with SYS_PTRACE capability in podman --- infra/helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infra/helper.py b/infra/helper.py index bc7c8de90967..dbc065d0dbe5 100755 --- a/infra/helper.py +++ b/infra/helper.py @@ -907,12 +907,15 @@ def reproduce_impl( # pylint: disable=too-many-arguments if env_to_add: env += env_to_add + run_args = _env_to_docker_args(env) + # for podman, we need to make sure the mounted testcase has proper SELinux context # to be accessible by the container if CONTAINER_ENGINE == 'podman': fix_selinux_context(testcase_path) + run_args += ['--cap-add', 'SYS_PTRACE'] - run_args = _env_to_docker_args(env) + [ + run_args += [ '-v', '%s:/out' % _get_output_dir(project_name), '-v',