summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/strace/syscalls.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2021-06-10 12:43:10 -0700
committergVisor bot <gvisor-bot@google.com>2021-06-10 12:51:43 -0700
commit8d426b73818cf07aeee3db88478a00b80ad9aafe (patch)
tree6f2d3effdce92e16ab46f2e624279cd60fe97654 /pkg/sentry/strace/syscalls.go
parent450692e03fe651d75d017c7e2faf4cba10e26f0b (diff)
Parse mmap protection and flags in strace
PiperOrigin-RevId: 378712518
Diffstat (limited to 'pkg/sentry/strace/syscalls.go')
-rw-r--r--pkg/sentry/strace/syscalls.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/sentry/strace/syscalls.go b/pkg/sentry/strace/syscalls.go
index 7e69b9279..5893443a7 100644
--- a/pkg/sentry/strace/syscalls.go
+++ b/pkg/sentry/strace/syscalls.go
@@ -238,6 +238,12 @@ const (
// EpollEvents is an array of struct epoll_event. It is the events
// argument in epoll_wait(2)/epoll_pwait(2).
EpollEvents
+
+ // MmapProt is the protection argument in mmap(2).
+ MmapProt
+
+ // MmapFlags is the flags argument in mmap(2).
+ MmapFlags
)
// defaultFormat is the syscall argument format to use if the actual format is