diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-16 14:38:57 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-16 14:38:57 +0900 |
| commit | c21168a74181903535c63f49c5a6d3bd2052c883 (patch) | |
| tree | 6ed272c6a4d3712624077cf39794d7d1eb22295f /internal/app/config.go | |
| parent | 084cd84f36a1d608541b4aa4e1e95334395d8953 (diff) | |
system: move enablements from state package
This removes the unnecessary import of the state package.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/config.go')
| -rw-r--r-- | internal/app/config.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/app/config.go b/internal/app/config.go index 72648f0c..9a6e18ea 100644 --- a/internal/app/config.go +++ b/internal/app/config.go @@ -6,7 +6,7 @@ import ( "git.ophivana.moe/cat/fortify/dbus" "git.ophivana.moe/cat/fortify/helper/bwrap" - "git.ophivana.moe/cat/fortify/internal/state" + "git.ophivana.moe/cat/fortify/internal/system" ) func init() { @@ -41,7 +41,7 @@ type ConfinementConfig struct { SessionBus *dbus.Config `json:"session_bus,omitempty"` // child capability enablements - Enablements state.Enablements `json:"enablements"` + Enablements system.Enablements `json:"enablements"` } // SandboxConfig describes resources made available to the sandbox. @@ -171,7 +171,7 @@ func Template() *Config { Log: false, Filter: true, }, - Enablements: state.EnableWayland.Mask() | state.EnableDBus.Mask() | state.EnablePulse.Mask(), + Enablements: system.EWayland.Mask() | system.EDBus.Mask() | system.EPulse.Mask(), }, } } |
