aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/seal.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-19 00:41:51 +0900
committerOphestra <cat@gensokyo.uk>2025-02-19 00:41:51 +0900
commit9a10eeab903705a3a033d36bfdc583ccd1bf586e (patch)
treee2f7571fc96f3edd06268d5a4d874146789676e7 /internal/app/seal.go
parentd1f83f40d6eb3458bb01d39cf6177d5e6285b27f (diff)
app/seal: embed enablements
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/seal.go')
-rw-r--r--internal/app/seal.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/app/seal.go b/internal/app/seal.go
index 35a025ca..e6efacd7 100644
--- a/internal/app/seal.go
+++ b/internal/app/seal.go
@@ -48,8 +48,6 @@ type appSeal struct {
// process-specific share directory path local to XDG_RUNTIME_DIR
shareLocal string
- // pass-through enablement tracking from config
- et system.Enablements
// initial config gob encoding buffer
ct io.WriterTo
// wayland socket direct access
@@ -62,6 +60,7 @@ type appSeal struct {
// seal system-level component
sys *appSealSys
+ system.Enablements
fst.Paths
// protected by upstream mutex
@@ -258,7 +257,7 @@ func (a *app) Seal(config *fst.Config) error {
seal.sys.I.WrapErr = fmsg.WrapError
// pass through enablements
- seal.et = config.Confinement.Enablements
+ seal.Enablements = config.Confinement.Enablements
// this method calls all share methods in sequence
if err := seal.setupShares([2]*dbus.Config{config.Confinement.SessionBus, config.Confinement.SystemBus}, a.os); err != nil {