These three syscalls are internally used by libc's memory allocation
logic, i.e. ultimately back malloc(). Allocating a bit of memory is so
basic, it should just be in the default set.
This fixes a couple of issues with asan/msan and the seccomp tests: when
asan/msan is used some additional, large memory allocations take place
in the background, and unless mmap/mmap2/brk are allowlisted these will
fail, aborting the test prematurely.
.name = "@default",
.help = "System calls that are always permitted",
.value =
+ "brk\0"
"cacheflush\0"
"clock_getres\0"
"clock_getres_time64\0"
"getuid\0"
"getuid32\0"
"membarrier\0"
+ "mmap\0"
+ "mmap2\0"
"nanosleep\0"
"pause\0"
"prlimit64\0"
"mkdirat\0"
"mknod\0"
"mknodat\0"
- "mmap\0"
- "mmap2\0"
"munmap\0"
"newfstatat\0"
"oldfstat\0"
"@signal\0"
"@sync\0"
"@timer\0"
- "brk\0"
"capget\0"
"capset\0"
"copy_file_range\0"