diff --git a/internal/app/app_nixos_test.go b/internal/app/app_nixos_test.go index e6fb370..d93b32e 100644 --- a/internal/app/app_nixos_test.go +++ b/internal/app/app_nixos_test.go @@ -101,6 +101,7 @@ var testCasesNixos = []sealTestCase{ "HOME=/var/lib/persist/module/fortify/0/1", "PULSE_COOKIE=" + fst.Tmp + "/pulse-cookie", "PULSE_SERVER=unix:/run/user/1971/pulse/native", + "SHELL=/run/current-system/sw/bin/zsh", "TERM=xterm-256color", "USER=u0_a1", "WAYLAND_DISPLAY=wayland-0", diff --git a/internal/app/app_pd_test.go b/internal/app/app_pd_test.go index d7fbc2b..3329cda 100644 --- a/internal/app/app_pd_test.go +++ b/internal/app/app_pd_test.go @@ -41,6 +41,7 @@ var testCasesPd = []sealTestCase{ Args: []string{"/run/current-system/sw/bin/zsh"}, Env: []string{ "HOME=/home/chronos", + "SHELL=/run/current-system/sw/bin/zsh", "TERM=xterm-256color", "USER=chronos", "XDG_RUNTIME_DIR=/run/user/65534", @@ -259,6 +260,7 @@ var testCasesPd = []sealTestCase{ "HOME=/home/chronos", "PULSE_COOKIE=" + fst.Tmp + "/pulse-cookie", "PULSE_SERVER=unix:/run/user/65534/pulse/native", + "SHELL=/run/current-system/sw/bin/zsh", "TERM=xterm-256color", "USER=chronos", "WAYLAND_DISPLAY=wayland-0", diff --git a/internal/app/seal.go b/internal/app/seal.go index 80e9537..9d33878 100644 --- a/internal/app/seal.go +++ b/internal/app/seal.go @@ -255,8 +255,9 @@ func (seal *outcome) finalise(ctx context.Context, sys sys.State, config *fst.Co mapuid = newInt(uid) mapgid = newInt(gid) if seal.env == nil { - seal.env = make(map[string]string) + seal.env = make(map[string]string, 1<<6) } + seal.env[shell] = shellPath } /*