diff options
Diffstat (limited to 'pkg/sentry')
-rw-r--r-- | pkg/sentry/strace/strace.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/sentry/strace/strace.go b/pkg/sentry/strace/strace.go index a16f5490e..f7bfa3a1f 100644 --- a/pkg/sentry/strace/strace.go +++ b/pkg/sentry/strace/strace.go @@ -568,8 +568,10 @@ func (s SyscallMap) SyscallExit(context interface{}, t *kernel.Task, sysno, rval } } -// ConvertToSysnoMap converts the names to a map keyed on the syscall number and value set to true. -// The map is in a convenient format to call SyscallFlagsTable.Enable(). +// ConvertToSysnoMap converts the names to a map keyed on the syscall number +// and value set to true. +// +// The map is in a convenient format to pass to SyscallFlagsTable.Enable(). func (s SyscallMap) ConvertToSysnoMap(syscalls []string) (map[uintptr]bool, error) { if syscalls == nil { // Sentinel: no list. |