summaryrefslogtreecommitdiff
path: root/tests/malloc_test.cpp
diff options
context:
space:
mode:
authorMartijn Coenen <maco@google.com>2018-11-08 16:41:42 +0100
committerMartijn Coenen <maco@google.com>2019-01-19 09:09:30 +0100
commitd269d9b9e930ae1fb0df49813fbcdc3d3a5850a7 (patch)
tree0616b498a34f44a378f88ded892de6d7580bd0de /tests/malloc_test.cpp
parentc3752be83771f00b24909689dde366f75dfa0c27 (diff)
Add support for seccomp filter that limits setresuid/setresgid.
Add a new function that installs a seccomp filter that checks all setresuid/setresgid syscalls to fall within the passed in uid/gid range. It allows all other syscalls through. Therefore, this filter is meant to be used in addition to one of the regular whitelist syscall filters. (If multiple seccomp filters are installed a in process, all filters are run, and the most restrictive result is used). Since the regular app and app_zygote seccomp filters block all other calls to change uid/gid (setuid, setgid, setgroups, setreuid, setregid, setfsuid), combining these filters prevents the process from using any other uid/gid than the one passed as arguments to the new function. Bug: 111434506 Test: atest CtsSeccompHostTestCases Change-Id: If330efdafbedd8e7d38ca81896a4dbb0bc49f431
Diffstat (limited to 'tests/malloc_test.cpp')
0 files changed, 0 insertions, 0 deletions