d269d9b9e9
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 |
||
---|---|---|
.. | ||
arch-arm | ||
arch-arm64 | ||
arch-common/bionic | ||
arch-mips | ||
arch-mips64 | ||
arch-x86 | ||
arch-x86_64 | ||
async_safe | ||
bionic | ||
dns | ||
include | ||
kernel | ||
malloc_debug | ||
malloc_hooks | ||
private | ||
seccomp | ||
stdio | ||
stdlib | ||
system_properties | ||
tools | ||
tzcode | ||
upstream-freebsd | ||
upstream-netbsd | ||
upstream-openbsd | ||
versioner-dependencies | ||
Android.bp | ||
fs_config_generator.py | ||
libc.map.txt | ||
libstdc++.map.txt | ||
MODULE_LICENSE_BSD | ||
NOTICE | ||
SECCOMP_BLACKLIST_APP.TXT | ||
SECCOMP_BLACKLIST_COMMON.TXT | ||
SECCOMP_WHITELIST_APP.TXT | ||
SECCOMP_WHITELIST_COMMON.TXT | ||
SECCOMP_WHITELIST_GLOBAL.TXT | ||
SECCOMP_WHITELIST_SYSTEM.TXT | ||
SYSCALLS.TXT | ||
version_script.txt |