aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/share.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2024-12-28 14:07:49 +0900
committerOphestra <cat@gensokyo.uk>2024-12-28 14:07:49 +0900
commitb9e2003d5b078a0704ee751aec80cfe8b4434646 (patch)
tree3f502f01cdbdefa4bf4138bb0288dd7562eaca76 /internal/app/share.go
parent66ec0d882f6e4bcd6d9318c59e8c8b9a174d8115 (diff)
app: ensure extra paths
The primary use case for extra perms is app-specific state directories, which may or may not exist (first run of any app). Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/share.go')
-rw-r--r--internal/app/share.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/app/share.go b/internal/app/share.go
index 0a18e310..3ee17948 100644
--- a/internal/app/share.go
+++ b/internal/app/share.go
@@ -297,6 +297,9 @@ func (seal *appSeal) setupShares(bus [2]*dbus.Config, os linux.System) error {
if p == nil {
continue
}
+ if p.ensure {
+ seal.sys.Ensure(p.name, 0700)
+ }
seal.sys.UpdatePermType(system.User, p.name, p.perms...)
}