mirror of https://github.com/jumpserver/jumpserver
fix: Arbitrary File Read in Ansible Play
parent
8d83c953d3
commit
ceb2a9bb17
|
@ -105,7 +105,7 @@ class PlaybookRunner:
|
||||||
shutil.rmtree(private_env)
|
shutil.rmtree(private_env)
|
||||||
|
|
||||||
kwargs = dict(kwargs)
|
kwargs = dict(kwargs)
|
||||||
if self.isolate and not is_macos:
|
if self.isolate and not is_macos():
|
||||||
kwargs['process_isolation'] = True
|
kwargs['process_isolation'] = True
|
||||||
kwargs['process_isolation_executable'] = 'bwrap'
|
kwargs['process_isolation_executable'] = 'bwrap'
|
||||||
|
|
||||||
|
|
|
@ -422,6 +422,7 @@ class JobExecution(JMSOrgBaseModel):
|
||||||
this.result.update(cb.result)
|
this.result.update(cb.result)
|
||||||
else:
|
else:
|
||||||
this.result = cb.result
|
this.result = cb.result
|
||||||
|
this.result = json.loads(json.dumps(this.result).replace('\\u0000', ''))
|
||||||
this.finish_task()
|
this.finish_task()
|
||||||
|
|
||||||
def finish_task(self):
|
def finish_task(self):
|
||||||
|
|
Loading…
Reference in New Issue