mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: set environment variables for LD_PRELOAD and SANDBOX_ALLOW_HOSTS_REGEXES in sandbox execution
This commit is contained in:
parent
762359703c
commit
983ccdcb27
|
|
@ -181,7 +181,10 @@ exec({dedent(code)!a})
|
|||
self.user,
|
||||
],
|
||||
'cwd': self.sandbox_path,
|
||||
'env': {},
|
||||
'env': {
|
||||
'LD_PRELOAD': '/opt/maxkb-app/sandbox/sandbox.so',
|
||||
'SANDBOX_ALLOW_HOSTS_REGEXES': self.allow_hosts_regexes,
|
||||
},
|
||||
'transport': 'stdio',
|
||||
}
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue