Skip to content

Commit

Permalink
Fix broken password-based SSH (#1016)
Browse files Browse the repository at this point in the history
[2.1] Fix broken password-based SSH

Reviewed-by: David Shrewsbury <None>
  • Loading branch information
shanemcd committed Mar 8, 2022
1 parent 5362b78 commit d25d930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ansible_runner/config/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def wrap_args_for_sandbox(self, args):
new_args.extend([
'--die-with-parent',
'--unshare-pid',
'--dev', '/dev',
'--dev-bind', '/dev', 'dev',
'--proc', '/proc',
'--dir', '/tmp',
'--ro-bind', '/bin', '/bin',
Expand Down
6 changes: 3 additions & 3 deletions test/unit/config/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def test_bwrap_process_isolation_defaults(mocker):
'bwrap',
'--die-with-parent',
'--unshare-pid',
'--dev', '/dev',
'--dev-bind', '/dev', 'dev',
'--proc', '/proc',
'--dir', '/tmp',
'--ro-bind', '/bin', '/bin',
Expand Down Expand Up @@ -624,7 +624,7 @@ def isfile(self, path):
'bwrap',
'--die-with-parent',
'--unshare-pid',
'--dev', '/dev',
'--dev-bind', '/dev', 'dev',
'--proc', '/proc',
'--dir', '/tmp',
'--ro-bind', '/bin', '/bin',
Expand Down Expand Up @@ -662,7 +662,7 @@ def test_process_isolation_settings(mocker, tmp_path):
'not_bwrap',
'--die-with-parent',
'--unshare-pid',
'--dev', '/dev',
'--dev-bind', '/dev', 'dev',
'--proc', '/proc',
'--dir', '/tmp',
'--ro-bind', '/bin', '/bin',
Expand Down

0 comments on commit d25d930

Please sign in to comment.