aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-17 01:09:12 +0900
committerOphestra <cat@gensokyo.uk>2025-03-17 01:10:27 +0900
commitee108603572101ad3c285830e04ee248916b6c5d (patch)
treee3d2274301cf7f1ed39df9c510672745fbe0b08a /cmd
parent44277dc0f1fd1806f5ceea34246a4c805a06b61b (diff)
seccomp: install output atomically
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/fpkg/main.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/fpkg/main.go b/cmd/fpkg/main.go
index 480833b2..2fbefdb4 100644
--- a/cmd/fpkg/main.go
+++ b/cmd/fpkg/main.go
@@ -19,7 +19,6 @@ import (
"git.gensokyo.uk/security/fortify/internal/fmsg"
"git.gensokyo.uk/security/fortify/internal/sandbox"
"git.gensokyo.uk/security/fortify/internal/sys"
- "git.gensokyo.uk/security/fortify/seccomp"
)
const shellPath = "/run/current-system/sw/bin/bash"
@@ -60,10 +59,7 @@ func main() {
flagDropShell bool
)
c := command.New(os.Stderr, log.Printf, "fpkg", 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").