mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Merge pull request #536 from ryanpetrello/fix-7741
properly follow symlinks for bwrap'd working directories
This commit is contained in:
@@ -703,6 +703,7 @@ def wrap_args_with_proot(args, cwd, **kwargs):
|
|||||||
- /var/log/supervisor
|
- /var/log/supervisor
|
||||||
'''
|
'''
|
||||||
from django.conf import settings
|
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', '/', '/']
|
||||||
hide_paths = [settings.AWX_PROOT_BASE_PATH]
|
hide_paths = [settings.AWX_PROOT_BASE_PATH]
|
||||||
if not kwargs.get('isolated'):
|
if not kwargs.get('isolated'):
|
||||||
|
|||||||
Reference in New Issue
Block a user