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 --- internal/app/app_nixos_test.go | 1 - internal/app/app_pd_test.go | 2 -- 2 files changed, 3 deletions(-) (limited to 'internal') diff --git a/internal/app/app_nixos_test.go b/internal/app/app_nixos_test.go index d89d099b..0b5b42c6 100644 --- a/internal/app/app_nixos_test.go +++ b/internal/app/app_nixos_test.go @@ -124,7 +124,6 @@ var testCasesNixos = []sealTestCase{ Bind("/run/opengl-driver", "/run/opengl-driver", 0). Bind("/dev/dri", "/dev/dri", sandbox.BindDevice|sandbox.BindWritable|sandbox.BindOptional). Bind("/etc", fst.Tmp+"/etc", 0). - Mkdir("/etc", 0700). Link(fst.Tmp+"/etc/alsa", "/etc/alsa"). Link(fst.Tmp+"/etc/bashrc", "/etc/bashrc"). Link(fst.Tmp+"/etc/binfmt.d", "/etc/binfmt.d"). diff --git a/internal/app/app_pd_test.go b/internal/app/app_pd_test.go index bde436f2..50e1611b 100644 --- a/internal/app/app_pd_test.go +++ b/internal/app/app_pd_test.go @@ -67,7 +67,6 @@ var testCasesPd = []sealTestCase{ Tmpfs("/run/user/1971", 8192, 0755). Tmpfs("/run/dbus", 8192, 0755). Bind("/etc", fst.Tmp+"/etc", 0). - Mkdir("/etc", 0700). Link(fst.Tmp+"/etc/alsa", "/etc/alsa"). Link(fst.Tmp+"/etc/bashrc", "/etc/bashrc"). Link(fst.Tmp+"/etc/binfmt.d", "/etc/binfmt.d"). @@ -288,7 +287,6 @@ var testCasesPd = []sealTestCase{ Tmpfs("/run/user/1971", 8192, 0755). Tmpfs("/run/dbus", 8192, 0755). Bind("/etc", fst.Tmp+"/etc", 0). - Mkdir("/etc", 0700). Link(fst.Tmp+"/etc/alsa", "/etc/alsa"). Link(fst.Tmp+"/etc/bashrc", "/etc/bashrc"). Link(fst.Tmp+"/etc/binfmt.d", "/etc/binfmt.d"). -- cgit v1.3.1