refactor: hardcode sandbox tempdir as /tmp

This commit is contained in:
2026-03-19 15:34:58 +00:00
parent f8119e8bde
commit 96b0ce57d9
4 changed files with 4 additions and 7 deletions
+2 -2
View File
@@ -19,7 +19,7 @@ exec bwrap \
--ro-bind / / \
--tmpfs /home \
--bind "$host_home" {{ .VisibleHome }} \
--bind "$host_tmp" {{ .VisibleTmp }} \
--bind "$host_tmp" '/tmp' \
--dev /dev \
--proc /proc \
--unshare-pid \
@@ -36,7 +36,7 @@ exec bwrap \
--setenv PATH "$path_env" \
--setenv PS1 '$ ' \
--setenv TERM 'xterm-256color' \
--setenv TMPDIR {{ .VisibleTmp }} \
--setenv TMPDIR '/tmp' \
--setenv TZ 'UTC' \
--chdir {{ .VisibleHome }} \
bash --noprofile --norc -i