From 83a1c75f1ac4d2d611b3a96474ed07df3cb557b6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 18 Aug 2025 02:24:56 +0900 Subject: 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 --- test/sandbox/case/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/sandbox/case/default.nix') diff --git a/test/sandbox/case/default.nix b/test/sandbox/case/default.nix index 6db1ff45..ec814aab 100644 --- a/test/sandbox/case/default.nix +++ b/test/sandbox/case/default.nix @@ -50,6 +50,9 @@ let useCommonPaths userns ; + enablements = { + inherit (tc) x11; + }; share = testProgram; packages = [ ]; path = "${testProgram}/bin/hakurei-test"; -- cgit v1.3.1