aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/case/tty.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-27 20:40:30 +0900
committerOphestra <cat@gensokyo.uk>2025-08-27 20:42:03 +0900
commitacb6931f3e4af62f92dc2ef85ef7c1ac9f7867e4 (patch)
treefe2e2ca8eea50f92273e299ede1ef1f7db985674 /test/sandbox/case/tty.nix
parent9d932d1039f2a8670ecb00d20133096369c5899a (diff)
app/seal: leave $DISPLAY as is on host abstract
This helps work around faulty software that misinterprets unix: DISPLAY string. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/case/tty.nix')
-rw-r--r--test/sandbox/case/tty.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/sandbox/case/tty.nix b/test/sandbox/case/tty.nix
index f06a9068..feb48337 100644
--- a/test/sandbox/case/tty.nix
+++ b/test/sandbox/case/tty.nix
@@ -35,6 +35,7 @@ in
useCommonPaths = true;
userns = false;
x11 = true;
+ hostAbstract = true;
# 0, PresetExt | PresetDenyNS | PresetDenyDevel
expectedFilter = {
@@ -45,7 +46,7 @@ in
want = {
env = [
"DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/65534/bus"
- "DISPLAY=unix:/tmp/.X11-unix/X0"
+ "DISPLAY=:0"
"HOME=/var/lib/hakurei/u0/a2"
"PULSE_SERVER=unix:/run/user/65534/pulse/native"
"SHELL=/run/current-system/sw/bin/bash"
@@ -276,7 +277,7 @@ in
seccomp = true;
try_socket = "/tmp/.X11-unix/X0";
- socket_abstract = false;
+ socket_abstract = true;
socket_pathname = true;
};
}