From f95e0a7568e5115dd536f19834083bff392458b8 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 14 Oct 2025 07:02:14 +0900 Subject: hst/config: hold acl struct by value Doc comments are also reworded for clarity. Signed-off-by: Ophestra --- cmd/hpkg/app.go | 2 +- cmd/hpkg/with.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd/hpkg') diff --git a/cmd/hpkg/app.go b/cmd/hpkg/app.go index 87a2c47c..350eaaa7 100644 --- a/cmd/hpkg/app.go +++ b/cmd/hpkg/app.go @@ -100,7 +100,7 @@ func (app *appInfo) toHst(pathSet *appPathSet, pathname *check.Absolute, argv [] Path: pathname, Args: argv, }, - ExtraPerms: []*hst.ExtraPermConfig{ + ExtraPerms: []hst.ExtraPermConfig{ {Path: dataHome, Execute: true}, {Ensure: true, Path: pathSet.baseDir, Read: true, Write: true, Execute: true}, }, diff --git a/cmd/hpkg/with.go b/cmd/hpkg/with.go index 5d6eb87c..97f80105 100644 --- a/cmd/hpkg/with.go +++ b/cmd/hpkg/with.go @@ -28,7 +28,7 @@ func withNixDaemon( mustRunAppDropShell(ctx, msg, updateConfig(&hst.Config{ ID: app.ID, - ExtraPerms: []*hst.ExtraPermConfig{ + ExtraPerms: []hst.ExtraPermConfig{ {Path: dataHome, Execute: true}, {Ensure: true, Path: pathSet.baseDir, Read: true, Write: true, Execute: true}, }, @@ -83,7 +83,7 @@ func withCacheDir( mustRunAppDropShell(ctx, msg, &hst.Config{ ID: app.ID, - ExtraPerms: []*hst.ExtraPermConfig{ + ExtraPerms: []hst.ExtraPermConfig{ {Path: dataHome, Execute: true}, {Ensure: true, Path: pathSet.baseDir, Read: true, Write: true, Execute: true}, {Path: workDir, Execute: true}, -- cgit v1.3.1