diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-07-14 00:25:21 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-07-14 00:25:21 +0000 |
commit | f3c6b7b37a205189233d2a8c1f36b1cacf3bcb1d (patch) | |
tree | 7e3c36d0a6cea2bfb0b8639e7d9d3e070c1e4412 /pkg/sentry/strace/strace.go | |
parent | 9ed48ff2523937ded7184597a9f61bab4bb084e8 (diff) | |
parent | 85a0a353ad185946d39463fddb3ec2cb37876371 (diff) |
Merge release-20210705.0-21-g85a0a353a (automated)
Diffstat (limited to 'pkg/sentry/strace/strace.go')
-rw-r--r-- | pkg/sentry/strace/strace.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/sentry/strace/strace.go b/pkg/sentry/strace/strace.go index 3ea9c31dd..757ff2a40 100644 --- a/pkg/sentry/strace/strace.go +++ b/pkg/sentry/strace/strace.go @@ -819,10 +819,10 @@ func convertToSyscallFlag(sinks SinkType) uint32 { return ret } -// Enable enables the syscalls in whitelist in all syscall tables. +// Enable enables the syscalls in allowlist in all syscall tables. // // Preconditions: Initialize has been called. -func Enable(whitelist []string, sinks SinkType) error { +func Enable(allowlist []string, sinks SinkType) error { flags := convertToSyscallFlag(sinks) for _, table := range kernel.SyscallTables() { // Is this known? @@ -832,7 +832,7 @@ func Enable(whitelist []string, sinks SinkType) error { } // Convert to a set of system calls numbers. - wl, err := sys.ConvertToSysnoMap(whitelist) + wl, err := sys.ConvertToSysnoMap(allowlist) if err != nil { return err } |