diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-18 02:24:56 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-18 11:30:58 +0900 |
| commit | 83a1c75f1ac4d2d611b3a96474ed07df3cb557b6 (patch) | |
| tree | ca9b0aba65d1453c24c419781cc8ed7377b77d74 /test/sandbox/case/mapuid.nix | |
| parent | 0ac6e998188e41d90ebc2b479a7e440361a3eecc (diff) | |
app: set up acl on X11 socket
The socket is typically owned by the priv-user, and inaccessible by the target user, so just allowing access to the directory is not enough. This change fixes this oversight and add checks that will also be useful for merging https://git.gensokyo.uk/security/hakurei/pulls/1.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/case/mapuid.nix')
| -rw-r--r-- | test/sandbox/case/mapuid.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sandbox/case/mapuid.nix b/test/sandbox/case/mapuid.nix index 1069f9fa..18d82e77 100644 --- a/test/sandbox/case/mapuid.nix +++ b/test/sandbox/case/mapuid.nix @@ -34,6 +34,7 @@ in mapRealUid = true; useCommonPaths = true; userns = false; + x11 = false; # 0, PresetStrict expectedFilter = { @@ -266,5 +267,9 @@ in ]; seccomp = true; + + try_socket = "/tmp/.X11-unix/X0"; + socket_abstract = true; + socket_pathname = false; }; } |
