From c326c3f97d6ab04be6b8052200e4dfa6b2f58550 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Mar 2025 20:00:34 +0900 Subject: 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 --- fst/sandbox.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fst') 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 { -- cgit v1.3.1