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 /main.go | |
| parent | 44277dc0f1fd1806f5ceea34246a4c805a06b61b (diff) | |
seccomp: install output atomically
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -26,7 +26,6 @@ import ( "git.gensokyo.uk/security/fortify/internal/sandbox" "git.gensokyo.uk/security/fortify/internal/state" "git.gensokyo.uk/security/fortify/internal/sys" - "git.gensokyo.uk/security/fortify/seccomp" "git.gensokyo.uk/security/fortify/system" ) @@ -71,10 +70,7 @@ func buildCommand(out io.Writer) command.Command { flagJSON bool ) c := command.New(out, log.Printf, "fortify", func([]string) error { - fmsg.Store(flagVerbose) - if flagVerbose { - seccomp.CPrintln = log.Println - } + internal.InstallFmsg(flagVerbose) return nil }). Flag(&flagVerbose, "v", command.BoolFlag(false), "Print debug messages to the console"). |
