Skip to content

Commit

Permalink
add lib symlink to bwrap call
Browse files Browse the repository at this point in the history
  • Loading branch information
christophert committed Oct 2, 2023
1 parent 0594cea commit 725a12b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ansible_runner/config/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
])

Expand Down
1 change: 1 addition & 0 deletions test/unit/config/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 725a12b

Please sign in to comment.