diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-17 01:09:12 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-17 01:10:27 +0900 |
| commit | ee108603572101ad3c285830e04ee248916b6c5d (patch) | |
| tree | e3d2274301cf7f1ed39df9c510672745fbe0b08a /internal/output.go | |
| parent | 44277dc0f1fd1806f5ceea34246a4c805a06b61b (diff) | |
seccomp: install output atomically
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/output.go')
| -rw-r--r-- | internal/output.go | 13 |
1 files changed, 13 insertions, 0 deletions
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) + } +} |
