From 9b507715d42f74c3f18fe817c2464abfca1b0182 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 8 Oct 2025 04:57:22 +0900 Subject: hst/dbus: validate interface strings This is relocated to hst to validate early. Signed-off-by: Ophestra --- hst/config.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'hst/config.go') 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"} -- cgit v1.3.1