From b1e1d5627e6532ec719c761846d7f38fe93fcadd Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Feb 2025 17:54:28 +0900 Subject: system: wrap console output functions This eliminates all fmsg imports from internal/system. Signed-off-by: Ophestra --- internal/app/seal.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/app') diff --git a/internal/app/seal.go b/internal/app/seal.go index fb3b3ce2..4cd31298 100644 --- a/internal/app/seal.go +++ b/internal/app/seal.go @@ -252,8 +252,12 @@ func (a *app) Seal(config *fst.Config) error { // store activity begins after Start is called and must end before Wait seal.store = state.NewMulti(seal.RunDirPath) - // initialise system interface with full uid + // initialise system interface with os uid seal.sys.I = system.New(seal.sys.user.uid) + seal.sys.I.IsVerbose = fmsg.Load + seal.sys.I.Verbose = fmsg.Verbose + seal.sys.I.Verbosef = fmsg.Verbosef + seal.sys.I.WrapErr = fmsg.WrapError // pass through enablements seal.et = config.Confinement.Enablements -- cgit v1.3.1