Skip to content

Commit

Permalink
Merge pull request ansible#1154 from wenottingham/namespaces-the-fina…
Browse files Browse the repository at this point in the history
…l-frontier

Have bubblewrap mount a new /proc in the wrapped environment.
  • Loading branch information
wenottingham authored Feb 7, 2018
2 parents fb5428d + c1a0e2c commit e982f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx/main/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def wrap_args_with_proot(args, cwd, **kwargs):
'''
from django.conf import settings
cwd = os.path.realpath(cwd)
new_args = [getattr(settings, 'AWX_PROOT_CMD', 'bwrap'), '--unshare-pid', '--dev-bind', '/', '/']
new_args = [getattr(settings, 'AWX_PROOT_CMD', 'bwrap'), '--unshare-pid', '--dev-bind', '/', '/', '--proc', '/proc']
hide_paths = [settings.AWX_PROOT_BASE_PATH]
if not kwargs.get('isolated'):
hide_paths.extend(['/etc/tower', '/var/lib/awx', '/var/log',
Expand Down

0 comments on commit e982f6e

Please sign in to comment.