fortify: set up seccomp verbose logging early
Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
9a239fa1a5
commit
a30f5e1226
5
main.go
5
main.go
@ -16,6 +16,7 @@ import (
|
|||||||
|
|
||||||
"git.gensokyo.uk/security/fortify/dbus"
|
"git.gensokyo.uk/security/fortify/dbus"
|
||||||
"git.gensokyo.uk/security/fortify/fst"
|
"git.gensokyo.uk/security/fortify/fst"
|
||||||
|
"git.gensokyo.uk/security/fortify/helper/bwrap"
|
||||||
"git.gensokyo.uk/security/fortify/internal"
|
"git.gensokyo.uk/security/fortify/internal"
|
||||||
"git.gensokyo.uk/security/fortify/internal/app"
|
"git.gensokyo.uk/security/fortify/internal/app"
|
||||||
"git.gensokyo.uk/security/fortify/internal/fmsg"
|
"git.gensokyo.uk/security/fortify/internal/fmsg"
|
||||||
@ -308,6 +309,10 @@ func runApp(config *fst.Config) {
|
|||||||
rs := new(app.RunState)
|
rs := new(app.RunState)
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
|
|
||||||
|
if fmsg.Verbose() {
|
||||||
|
bwrap.CPrintln = fmsg.Println
|
||||||
|
}
|
||||||
|
|
||||||
// handle signals for graceful shutdown
|
// handle signals for graceful shutdown
|
||||||
sig := make(chan os.Signal, 2)
|
sig := make(chan os.Signal, 2)
|
||||||
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
|
signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)
|
||||||
|
Loading…
Reference in New Issue
Block a user