aboutsummaryrefslogtreecommitdiffhomepage
path: root/fst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-25 20:00:34 +0900
committerOphestra <cat@gensokyo.uk>2025-03-25 20:00:34 +0900
commitc326c3f97d6ab04be6b8052200e4dfa6b2f58550 (patch)
tree7ed37b1541bb12529c54c82ae80c35ec6e758eff /fst
parent971c79bb80e2dc88421f047e82556a39ef063fbf (diff)
fst/sandbox: do not create /etc in advance
This is now handled by the setup op. This also gets rid of the hardcoded /etc path. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'fst')
-rw-r--r--fst/sandbox.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/fst/sandbox.go b/fst/sandbox.go
index b1240eca..fadf39e3 100644
--- a/fst/sandbox.go
+++ b/fst/sandbox.go
@@ -245,9 +245,7 @@ func (s *SandboxConfig) ToContainer(sys SandboxSys, uid, gid *int) (*sandbox.Par
if etcPath == "" {
etcPath = "/etc"
}
- container.
- Bind(etcPath, Tmp+"/etc", 0).
- Mkdir("/etc", 0700)
+ container.Bind(etcPath, Tmp+"/etc", 0)
// link host /etc contents to prevent dropping passwd/group bind mounts
if d, err := sys.ReadDir(etcPath); err != nil {