diff options
author | Zach Koopmans <zkoopmans@google.com> | 2018-12-05 10:52:44 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-12-05 10:53:51 -0800 |
commit | 06131fe749e3715534f9d551528d89048ae1398b (patch) | |
tree | 90bdce3e8502bdc0bfb04f2fae589fc09ff1863d /pkg/sentry/fs/mount_test.go | |
parent | fab029c50b445e06ba770c9ccd7d6d0a06e15057 (diff) |
Check for CAP_SYS_RESOURCE in prctl(PR_SET_MM, ...)
If sys_prctl is called with PR_SET_MM without CAP_SYS_RESOURCE,
the syscall should return failure with errno set to EPERM.
See: http://man7.org/linux/man-pages/man2/prctl.2.html
PiperOrigin-RevId: 224182874
Change-Id: I630d1dd44af8b444dd16e8e58a0764a0cf1ad9a3
Diffstat (limited to 'pkg/sentry/fs/mount_test.go')
0 files changed, 0 insertions, 0 deletions