From 725a12bb0416d05ad2f804b277496441ea1cbd3a Mon Sep 17 00:00:00 2001 From: Christopher Tran Date: Mon, 2 Oct 2023 15:22:41 -0400 Subject: [PATCH] add lib symlink to bwrap call --- src/ansible_runner/config/runner.py | 1 + test/unit/config/test_runner.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/ansible_runner/config/runner.py b/src/ansible_runner/config/runner.py index 70379ef3..f770ad67 100644 --- a/src/ansible_runner/config/runner.py +++ b/src/ansible_runner/config/runner.py @@ -339,6 +339,7 @@ def wrap_args_for_sandbox(self, args): '--ro-bind', '/etc', '/etc', '--ro-bind', '/usr', '/usr', '--ro-bind', '/opt', '/opt', + '--symlink', 'usr/lib', '/lib', '--symlink', 'usr/lib64', '/lib64', ]) diff --git a/test/unit/config/test_runner.py b/test/unit/config/test_runner.py index 397fd9a5..cf293250 100644 --- a/test/unit/config/test_runner.py +++ b/test/unit/config/test_runner.py @@ -544,6 +544,7 @@ def test_bwrap_process_isolation_defaults(mocker): '--ro-bind', '/etc', '/etc', '--ro-bind', '/usr', '/usr', '--ro-bind', '/opt', '/opt', + '--symlink', 'usr/lib', '/lib', '--symlink', 'usr/lib64', '/lib64', '--bind', '/', '/', '--chdir', '/project',