aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-17 02:59:48 +0900
committerOphestra <cat@gensokyo.uk>2026-06-17 02:59:48 +0900
commit08112f0b906947bbaf82e450b19c5e0ea8b3fb4d (patch)
treedc14cb72cd6d77cf91fdd73fef19dea9356edded /cmd
parente1a1e1e3996b4a7669de6b3c70fb0750d1841311 (diff)
hst: optionally cover /run/ early
This works around awkward root permissions. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/app/app.go2
-rw-r--r--cmd/app/app_test.go2
-rw-r--r--cmd/hakurei/print_test.go7
3 files changed, 8 insertions, 3 deletions
diff --git a/cmd/app/app.go b/cmd/app/app.go
index fa895896..b5e5ee92 100644
--- a/cmd/app/app.go
+++ b/cmd/app/app.go
@@ -83,6 +83,8 @@ func parse(id string, base *check.Absolute, r io.Reader) (*hst.Config, error) {
Home: home,
Path: shell,
Args: []string{"zsh", "-c"},
+
+ Flags: hst.FCoverRun,
},
}
diff --git a/cmd/app/app_test.go b/cmd/app/app_test.go
index 7c8c9ede..7a83bcc8 100644
--- a/cmd/app/app_test.go
+++ b/cmd/app/app_test.go
@@ -122,7 +122,7 @@ talk com.canonical.Unity
"exec Discord --ozone-platform-hint=wayland",
},
- Flags: hst.FUserns | hst.FHostNet | hst.FMapRealUID |
+ Flags: hst.FCoverRun | hst.FUserns | hst.FHostNet | hst.FMapRealUID |
hst.FShareRuntime | hst.FShareTmpdir,
},
}, nil},
diff --git a/cmd/hakurei/print_test.go b/cmd/hakurei/print_test.go
index f947fced..71eb8caa 100644
--- a/cmd/hakurei/print_test.go
+++ b/cmd/hakurei/print_test.go
@@ -64,7 +64,7 @@ func TestPrintShowInstance(t *testing.T) {
Identity: 9 (org.chromium.Chromium)
Enablements: wayland, dbus, pipewire
Groups: video, dialout, plugdev
- Flags: multiarch, compat, devel, userns, net, abstract, tty, mapuid, device, runtime, tmpdir
+ Flags: multiarch, compat, devel, userns, net, abstract, tty, mapuid, device, cover_run, runtime, tmpdir
Home: /data/data/org.chromium.Chromium
Hostname: localhost
Path: /run/current-system/sw/bin/chromium
@@ -161,7 +161,7 @@ App
Identity: 9 (org.chromium.Chromium)
Enablements: wayland, dbus, pipewire
Groups: video, dialout, plugdev
- Flags: multiarch, compat, devel, userns, net, abstract, tty, mapuid, device, runtime, tmpdir
+ Flags: multiarch, compat, devel, userns, net, abstract, tty, mapuid, device, cover_run, runtime, tmpdir
Home: /data/data/org.chromium.Chromium
Hostname: localhost
Path: /run/current-system/sw/bin/chromium
@@ -355,6 +355,7 @@ App
"multiarch": true,
"map_real_uid": true,
"device": true,
+ "cover_run": true,
"share_runtime": true,
"share_tmpdir": true
},
@@ -506,6 +507,7 @@ App
"multiarch": true,
"map_real_uid": true,
"device": true,
+ "cover_run": true,
"share_runtime": true,
"share_tmpdir": true
}
@@ -704,6 +706,7 @@ func TestPrintPs(t *testing.T) {
"multiarch": true,
"map_real_uid": true,
"device": true,
+ "cover_run": true,
"share_runtime": true,
"share_tmpdir": true
},