seccomp: install output atomically

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-03-17 01:09:12 +09:00
parent 44277dc0f1
commit ee10860357
10 changed files with 59 additions and 39 deletions

View File

@@ -72,11 +72,8 @@ func Init(exit func(code int)) {
log.Fatal("invalid setup parameters")
}
fmsg.Store(params.Verbose)
internal.InstallFmsg(params.Verbose)
fmsg.Verbose("received setup parameters")
if params.Verbose {
seccomp.CPrintln = fmsg.Verbose
}
closeSetup = f
offsetSetup = int(setupFile.Fd() + 1)
}