aboutsummaryrefslogtreecommitdiffhomepage
path: root/fst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-31 19:31:37 +0900
committerOphestra <cat@gensokyo.uk>2025-03-31 21:27:31 +0900
commit4036da3b5c28d1a37780acc179985067865b94d0 (patch)
tree48479ba67dfe12e06d396fefaaac6d3af27b6c7c /fst
parent986105958cdf2071d07b2e1fd2321884e4f09ccc (diff)
fst: optional configured shell path
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'fst')
-rw-r--r--fst/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/fst/config.go b/fst/config.go
index 866f7309..48f74ebf 100644
--- a/fst/config.go
+++ b/fst/config.go
@@ -35,6 +35,8 @@ type ConfinementConfig struct {
Inner string `json:"home_inner"`
// home directory in init namespace
Outer string `json:"home"`
+ // absolute path to shell, empty for host shell
+ Shell string `json:"shell,omitempty"`
// abstract sandbox configuration
Sandbox *SandboxConfig `json:"sandbox"`
// extra acl ops, runs after everything else
@@ -97,6 +99,7 @@ func Template() *Config {
Username: "chronos",
Outer: "/var/lib/persist/home/org.chromium.Chromium",
Inner: "/var/lib/fortify",
+ Shell: "/run/current-system/sw/bin/zsh",
Sandbox: &SandboxConfig{
Hostname: "localhost",
Devel: true,