From ee108603572101ad3c285830e04ee248916b6c5d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Mar 2025 01:09:12 +0900 Subject: seccomp: install output atomically Signed-off-by: Ophestra --- internal/output.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/output.go (limited to 'internal/output.go') diff --git a/internal/output.go b/internal/output.go new file mode 100644 index 00000000..db37f55c --- /dev/null +++ b/internal/output.go @@ -0,0 +1,13 @@ +package internal + +import ( + "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/fortify/seccomp" +) + +func InstallFmsg(verbose bool) { + fmsg.Store(verbose) + if verbose { + seccomp.SetOutput(fmsg.Verbose) + } +} -- cgit v1.3.1