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/pdlike.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/pdlike.nix')
| -rw-r--r-- | test/sandbox/case/pdlike.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/sandbox/case/pdlike.nix b/test/sandbox/case/pdlike.nix index 4f0e71c4..da6753f8 100644 --- a/test/sandbox/case/pdlike.nix +++ b/test/sandbox/case/pdlike.nix @@ -34,6 +34,7 @@ in mapRealUid = false; useCommonPaths = false; userns = true; + x11 = false; # 0, PresetExt | PresetDenyDevel expectedFilter = { @@ -261,5 +262,9 @@ in ]; seccomp = true; + + try_socket = "/tmp/.X11-unix/X0"; + socket_abstract = true; + socket_pathname = false; }; } |
