diff options
author | Jamie Liu <jamieliu@google.com> | 2018-06-27 13:41:50 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-27 13:42:37 -0700 |
commit | 4215e059e24c5ed6298060769444b0eeaa03da8a (patch) | |
tree | 0d4d4faa4c7f1019396e229eb6a5960b2ff2823f /pkg/sentry/syscalls/linux/sys_mmap.go | |
parent | f93043615f31214193c9079d38498028331c72ca (diff) |
Ignore MADV_DONTDUMP and MADV_DODUMP.
PiperOrigin-RevId: 202361912
Change-Id: I1d0ee529073954d467b870872f494cebbf8ea61a
Diffstat (limited to 'pkg/sentry/syscalls/linux/sys_mmap.go')
-rw-r--r-- | pkg/sentry/syscalls/linux/sys_mmap.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/syscalls/linux/sys_mmap.go b/pkg/sentry/syscalls/linux/sys_mmap.go index bfa23f6a8..1a98328dc 100644 --- a/pkg/sentry/syscalls/linux/sys_mmap.go +++ b/pkg/sentry/syscalls/linux/sys_mmap.go @@ -181,6 +181,10 @@ func Madvise(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.Sysca fallthrough case linux.MADV_MERGEABLE, linux.MADV_UNMERGEABLE: fallthrough + case linux.MADV_DONTDUMP, linux.MADV_DODUMP: + // TODO: Core dumping isn't implemented, so these are + // no-ops. + fallthrough case linux.MADV_NORMAL, linux.MADV_RANDOM, linux.MADV_SEQUENTIAL, linux.MADV_WILLNEED: // Do nothing, we totally ignore the suggestions above. return 0, nil, nil |