mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 07:52:50 +00:00
feat: set current working directory for sandbox execution
This commit is contained in:
parent
68a7a0f4dc
commit
ec238b7132
|
|
@ -210,6 +210,7 @@ exec({dedent(code)!a})
|
|||
'-c',
|
||||
f'import base64,gzip; exec(gzip.decompress(base64.b64decode(\'{compressed_and_base64_encoded_code_str}\')).decode())',
|
||||
],
|
||||
'cwd': self.sandbox_path,
|
||||
'env': {
|
||||
'LD_PRELOAD': self.sandbox_so_path,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue