aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/config.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-08 04:57:22 +0900
committerOphestra <cat@gensokyo.uk>2025-10-08 04:57:22 +0900
commit9b507715d42f74c3f18fe817c2464abfca1b0182 (patch)
treec3d8ee5ef6809aaf3174bd6ecb00b8115261897e /hst/config.go
parent12ab7ea3b465a130933efd9e7fe044f3636dc6ed (diff)
hst/dbus: validate interface strings
This is relocated to hst to validate early. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/config.go')
-rw-r--r--hst/config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/hst/config.go b/hst/config.go
index 7c96874f..9f4ee2f7 100644
--- a/hst/config.go
+++ b/hst/config.go
@@ -140,6 +140,13 @@ func (config *Config) Validate() error {
Msg: "identity " + strconv.Itoa(config.Identity) + " out of range"}
}
+ if err := config.SessionBus.CheckInterfaces("session"); err != nil {
+ return err
+ }
+ if err := config.SystemBus.CheckInterfaces("system"); err != nil {
+ return err
+ }
+
if config.Container == nil {
return &AppError{Step: "validate configuration", Err: ErrConfigNull,
Msg: "configuration missing container state"}