aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox
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
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')
-rw-r--r--test/sandbox/case/default.nix1
-rw-r--r--test/sandbox/case/device.nix1
-rw-r--r--test/sandbox/case/mapuid.nix1
-rw-r--r--test/sandbox/case/pdlike.nix1
-rw-r--r--test/sandbox/case/preset.nix1
-rw-r--r--test/sandbox/case/tty.nix5
6 files changed, 8 insertions, 2 deletions
diff --git a/test/sandbox/case/default.nix b/test/sandbox/case/default.nix
index ec814aab..acf30d7a 100644
--- a/test/sandbox/case/default.nix
+++ b/test/sandbox/case/default.nix
@@ -49,6 +49,7 @@ let
mapRealUid
useCommonPaths
userns
+ hostAbstract
;
enablements = {
inherit (tc) x11;
diff --git a/test/sandbox/case/device.nix b/test/sandbox/case/device.nix
index 831b6ab2..d0f62892 100644
--- a/test/sandbox/case/device.nix
+++ b/test/sandbox/case/device.nix
@@ -26,6 +26,7 @@ in
useCommonPaths = true;
userns = false;
x11 = true;
+ hostAbstract = false;
# 0, PresetStrict
expectedFilter = {
diff --git a/test/sandbox/case/mapuid.nix b/test/sandbox/case/mapuid.nix
index d0335796..c6dc8488 100644
--- a/test/sandbox/case/mapuid.nix
+++ b/test/sandbox/case/mapuid.nix
@@ -35,6 +35,7 @@ in
useCommonPaths = true;
userns = false;
x11 = false;
+ hostAbstract = false;
# 0, PresetStrict
expectedFilter = {
diff --git a/test/sandbox/case/pdlike.nix b/test/sandbox/case/pdlike.nix
index 60dcef55..3b22809d 100644
--- a/test/sandbox/case/pdlike.nix
+++ b/test/sandbox/case/pdlike.nix
@@ -35,6 +35,7 @@ in
useCommonPaths = false;
userns = true;
x11 = false;
+ hostAbstract = false;
# 0, PresetExt | PresetDenyDevel
expectedFilter = {
diff --git a/test/sandbox/case/preset.nix b/test/sandbox/case/preset.nix
index ba1ab4c9..32c0d618 100644
--- a/test/sandbox/case/preset.nix
+++ b/test/sandbox/case/preset.nix
@@ -35,6 +35,7 @@ in
useCommonPaths = false;
userns = false;
x11 = false;
+ hostAbstract = false;
# 0, PresetStrict
expectedFilter = {
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;
};
}