fix: Arbitrary File Read in Ansible Play

pull/13838/head
wangruidong 2024-07-30 18:10:46 +08:00 committed by Bryan
parent 04761a9373
commit 4a5f327498
2 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class PlaybookRunner:
shutil.rmtree(private_env)
kwargs = dict(kwargs)
if self.isolate and not is_macos:
if self.isolate and not is_macos():
kwargs['process_isolation'] = True
kwargs['process_isolation_executable'] = 'bwrap'

View File

@ -423,6 +423,7 @@ class JobExecution(JMSOrgBaseModel):
this.result.update(cb.result)
else:
this.result = cb.result
this.result = json.loads(json.dumps(this.result).replace('\\u0000', ''))
this.finish_task()
def finish_task(self):