mirror of
https://github.com/ansible/awx.git
synced 2026-04-07 02:59:21 -02:30
Merge pull request #1154 from wenottingham/namespaces-the-final-frontier
Have bubblewrap mount a new /proc in the wrapped environment.
This commit is contained in:
@@ -766,7 +766,7 @@ def wrap_args_with_proot(args, cwd, **kwargs):
|
|||||||
'''
|
'''
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
cwd = os.path.realpath(cwd)
|
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]
|
hide_paths = [settings.AWX_PROOT_BASE_PATH]
|
||||||
if not kwargs.get('isolated'):
|
if not kwargs.get('isolated'):
|
||||||
hide_paths.extend(['/etc/tower', '/var/lib/awx', '/var/log',
|
hide_paths.extend(['/etc/tower', '/var/lib/awx', '/var/log',
|
||||||
|
|||||||
Reference in New Issue
Block a user