aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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;
};
}