diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-15 02:56:08 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-15 03:06:10 +0900 |
| commit | ea8d1c07df18ceb94932fcc94ad00eb57c99da33 (patch) | |
| tree | 84dd16fd18987542cbf5840b0727374627517f82 /internal/app/app_pd_test.go | |
| parent | a0062d827515c092cae7dfcf1af0033b87b3e90e (diff) | |
priv/shim: move /sbin/init setup to app
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_pd_test.go')
| -rw-r--r-- | internal/app/app_pd_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/app/app_pd_test.go b/internal/app/app_pd_test.go index 98ddf31f..e124e873 100644 --- a/internal/app/app_pd_test.go +++ b/internal/app/app_pd_test.go @@ -156,7 +156,9 @@ var testCasesPd = []sealTestCase{ Bind("/home/chronos", "/home/chronos", false, true). Bind("/tmp/fortify.1971/4a450b6596d7bc15bd01780eb9a607ac/passwd", "/etc/passwd"). Bind("/tmp/fortify.1971/4a450b6596d7bc15bd01780eb9a607ac/group", "/etc/group"). - Tmpfs("/var/run/nscd", 8192), + Tmpfs("/var/run/nscd", 8192). + Bind("/run/wrappers/bin/fortify", "/.fortify/sbin/fortify"). + Symlink("fortify", "/.fortify/sbin/init"), }, { "nixos permissive defaults chromium", new(stubNixOS), @@ -387,6 +389,8 @@ var testCasesPd = []sealTestCase{ Bind("/tmp/fortify.1971/ebf083d1b175911782d413369b64ce7c/pulse-cookie", fst.Tmp+"/pulse-cookie"). Bind("/tmp/fortify.1971/ebf083d1b175911782d413369b64ce7c/bus", "/run/user/65534/bus"). Bind("/tmp/fortify.1971/ebf083d1b175911782d413369b64ce7c/system_bus_socket", "/run/dbus/system_bus_socket"). - Tmpfs("/var/run/nscd", 8192), + Tmpfs("/var/run/nscd", 8192). + Bind("/run/wrappers/bin/fortify", "/.fortify/sbin/fortify"). + Symlink("fortify", "/.fortify/sbin/init"), }, } |
