Skip to content

Commit

Permalink
helper: Reproduce with SYS_PTRACE capability in podman
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakuje committed Dec 3, 2020
1 parent 5c27ef3 commit f211e09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infra/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f211e09

Please sign in to comment.