mirror of
https://github.com/ansible/awx.git
synced 2026-05-06 17:07:36 -02:30
Hide all of /var/log/ from jobs running using proot.
This commit is contained in:
@@ -343,9 +343,9 @@ class BaseTask(Task):
|
|||||||
- /tmp (except for own tmp files)
|
- /tmp (except for own tmp files)
|
||||||
'''
|
'''
|
||||||
new_args = [getattr(settings, 'AWX_PROOT_CMD', 'proot'), '-r', '/']
|
new_args = [getattr(settings, 'AWX_PROOT_CMD', 'proot'), '-r', '/']
|
||||||
hide_paths = ['/etc/tower', '/var/lib/awx', '/var/log/tower',
|
hide_paths = ['/etc/tower', '/var/lib/awx', '/var/log',
|
||||||
'/var/log/supervisor', tempfile.gettempdir(),
|
tempfile.gettempdir(), settings.PROJECTS_ROOT,
|
||||||
settings.PROJECTS_ROOT, settings.JOBOUTPUT_ROOT]
|
settings.JOBOUTPUT_ROOT]
|
||||||
hide_paths.extend(getattr(settings, 'AWX_PROOT_HIDE_PATHS', None) or [])
|
hide_paths.extend(getattr(settings, 'AWX_PROOT_HIDE_PATHS', None) or [])
|
||||||
for path in sorted(set(hide_paths)):
|
for path in sorted(set(hide_paths)):
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
|
|||||||
Reference in New Issue
Block a user