Make debug tip more clear in the code

PiperOrigin-RevId: 529620411
This commit is contained in:
Fabricio Voznika
2023-05-04 23:19:20 -07:00
committed by gVisor bot
parent ff424dce7f
commit 153f0217e6
+3 -1
View File
@@ -54,7 +54,9 @@ func Install(rules SyscallRules, denyRules SyscallRules) error {
return err
}
// Uncomment to get stack trace when there is a violation.
// *** DEBUG TIP ***
// If you suspect the process is getting killed due to a seccomp violation, uncomment the line
// below to get a panic stack trace when there is a violation.
// defaultAction = linux.BPFAction(linux.SECCOMP_RET_TRAP)
log.Infof("Installing seccomp filters for %d syscalls (action=%v)", len(rules), defaultAction)