aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/share.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2024-12-28 13:23:27 +0900
committerOphestra <cat@gensokyo.uk>2024-12-28 13:23:27 +0900
commit847b667489e661d0e59240d64614a33392d94e0d (patch)
tree88f7f068d762b3cf9f6198de03b4f3e3277dfea3 /internal/app/share.go
parentc70f0612ad32f9ba5dc4ecf793aa4553929372d4 (diff)
app: extra acl entries from configuration
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/share.go')
-rw-r--r--internal/app/share.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/app/share.go b/internal/app/share.go
index dea55a87..0a18e310 100644
--- a/internal/app/share.go
+++ b/internal/app/share.go
@@ -292,6 +292,14 @@ func (seal *appSeal) setupShares(bus [2]*dbus.Config, os linux.System) error {
seal.sys.bwrap.Tmpfs(dest, 8*1024)
}
+ // append extra perms
+ for _, p := range seal.extraPerms {
+ if p == nil {
+ continue
+ }
+ seal.sys.UpdatePermType(system.User, p.name, p.perms...)
+ }
+
return nil
}