aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-14 07:02:14 +0900
committerOphestra <cat@gensokyo.uk>2025-10-14 07:02:14 +0900
commitf95e0a7568e5115dd536f19834083bff392458b8 (patch)
tree535346062d66aac889120a511453f9d68c902263 /internal
parent4c647add0db06cc7a28571aee7502737f0d66b27 (diff)
hst/config: hold acl struct by value
Doc comments are also reworded for clarity. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/app/outcome.go2
-rw-r--r--internal/app/spfinal.go5
2 files changed, 4 insertions, 3 deletions
diff --git a/internal/app/outcome.go b/internal/app/outcome.go
index f2c96e83..87bb1fb4 100644
--- a/internal/app/outcome.go
+++ b/internal/app/outcome.go
@@ -156,7 +156,7 @@ type outcomeStateSys struct {
// Copied from [hst.Config]. Safe for read by spWaylandOp.toSystem only.
directWayland bool
// Copied header from [hst.Config]. Safe for read by spFinalOp.toSystem only.
- extraPerms []*hst.ExtraPermConfig
+ extraPerms []hst.ExtraPermConfig
// Copied address from [hst.Config]. Safe for read by spDBusOp.toSystem only.
sessionBus, systemBus *hst.BusConfig
diff --git a/internal/app/spfinal.go b/internal/app/spfinal.go
index f67d255f..7e444168 100644
--- a/internal/app/spfinal.go
+++ b/internal/app/spfinal.go
@@ -21,8 +21,9 @@ type spFinalOp struct{}
func (s spFinalOp) toSystem(state *outcomeStateSys) error {
// append ExtraPerms last
- for _, p := range state.extraPerms {
- if p == nil || p.Path == nil {
+ for i := range state.extraPerms {
+ p := &state.extraPerms[i]
+ if p.Path == nil {
continue
}