From a30f5e1226f5176f59657ef67e412c53bcedb856 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 22 Jan 2025 01:58:54 +0900 Subject: [PATCH] fortify: set up seccomp verbose logging early Signed-off-by: Ophestra --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index e6e856b..2a47806 100644 --- a/main.go +++ b/main.go @@ -16,6 +16,7 @@ import ( "git.gensokyo.uk/security/fortify/dbus" "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/helper/bwrap" "git.gensokyo.uk/security/fortify/internal" "git.gensokyo.uk/security/fortify/internal/app" "git.gensokyo.uk/security/fortify/internal/fmsg" @@ -308,6 +309,10 @@ func runApp(config *fst.Config) { rs := new(app.RunState) ctx, cancel := context.WithCancel(context.Background()) + if fmsg.Verbose() { + bwrap.CPrintln = fmsg.Println + } + // handle signals for graceful shutdown sig := make(chan os.Signal, 2) signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)