diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-05 03:19:37 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-05 03:25:13 +0900 |
| commit | 8ace2148326d85312a157e19e596978361e9285d (patch) | |
| tree | 5f0214a6dd7b804b4bb2422c21d30e1b76a73f68 /internal/app/app_test.go | |
| parent | eb5ee4fece0327b1183ae823d68e4cf4e3e1ced0 (diff) | |
system/wayland: hang up security-context-v1 internally
This should have been an implementation detail and should not be up to the caller to close.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/app_test.go')
| -rw-r--r-- | internal/app/app_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/app/app_test.go b/internal/app/app_test.go index d06e3df8..04ff2f54 100644 --- a/internal/app/app_test.go +++ b/internal/app/app_test.go @@ -5,7 +5,6 @@ import ( "encoding/json" "io" "io/fs" - "os" "reflect" "syscall" "testing" @@ -140,7 +139,7 @@ func TestApp(t *testing.T) { Ensure(m("/tmp/hakurei.0/tmpdir"), 0700).UpdatePermType(system.User, m("/tmp/hakurei.0/tmpdir"), acl.Execute). Ensure(m("/tmp/hakurei.0/tmpdir/9"), 01700).UpdatePermType(system.User, m("/tmp/hakurei.0/tmpdir/9"), acl.Read, acl.Write, acl.Execute). Ephemeral(system.Process, m("/tmp/hakurei.0/ebf083d1b175911782d413369b64ce7c"), 0711). - Wayland(new(*os.File), m("/tmp/hakurei.0/ebf083d1b175911782d413369b64ce7c/wayland"), m("/run/user/1971/wayland-0"), "org.chromium.Chromium", "ebf083d1b175911782d413369b64ce7c"). + Wayland(m("/tmp/hakurei.0/ebf083d1b175911782d413369b64ce7c/wayland"), m("/run/user/1971/wayland-0"), "org.chromium.Chromium", "ebf083d1b175911782d413369b64ce7c"). Ensure(m("/run/user/1971/hakurei"), 0700).UpdatePermType(system.User, m("/run/user/1971/hakurei"), acl.Execute). Ensure(m("/run/user/1971"), 0700).UpdatePermType(system.User, m("/run/user/1971"), acl.Execute). // this is ordered as is because the previous Ensure only calls mkdir if XDG_RUNTIME_DIR is unset Ephemeral(system.Process, m("/run/user/1971/hakurei/ebf083d1b175911782d413369b64ce7c"), 0700).UpdatePermType(system.Process, m("/run/user/1971/hakurei/ebf083d1b175911782d413369b64ce7c"), acl.Execute). |
