fix: 沙箱内 HOME=/home
This commit is contained in:
parent
edaf1b4ad2
commit
29a4a5e0ef
@ -243,6 +243,7 @@ def _build_bwrap_cmd(deploy_dir: str, command: str, workdir: str = "", network:
|
||||
"--dev", "/dev",
|
||||
"--tmpfs", "/tmp",
|
||||
"--bind", deploy_dir, "/home",
|
||||
"--setenv", "HOME", "/home",
|
||||
]
|
||||
if network == "isolated":
|
||||
parts.insert(1, "--unshare-net")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user