From 08112f0b906947bbaf82e450b19c5e0ea8b3fb4d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 17 Jun 2026 02:59:48 +0900 Subject: hst: optionally cover /run/ early This works around awkward root permissions. Signed-off-by: Ophestra --- cmd/app/app.go | 2 ++ cmd/app/app_test.go | 2 +- cmd/hakurei/print_test.go | 7 +++++-- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'cmd') 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 }, -- cgit v1.3.1