app: extra acl entries from configuration

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2024-12-28 13:23:27 +09:00
parent c70f0612ad
commit 847b667489
4 changed files with 134 additions and 59 deletions

View File

@@ -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
}