Partially revert "seccomp: add mmap and address family restrictions for MIPS" (#8563)
authorJames Cowgill <jcowgill@users.noreply.github.com>
Fri, 23 Mar 2018 15:04:16 +0000 (15:04 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Mar 2018 15:04:16 +0000 (16:04 +0100)
commit303d6b4ca6ebadca2f6faf63a76743e22efba242
treea222a1665d9fd3ffa4f59a918d459a08f83e81e7
parent19496554e23ea4861ce780430052dcf86a2ffcba
Partially revert "seccomp: add mmap and address family restrictions for MIPS" (#8563)

This reverts the mmap parts of f5aeac1439d64905c7b1b57042c39589dd31e3a6,
but keeps the part which restricts address families which works
correctly.

Unfortunately the MIPS toolchains still do not implement PT_GNU_STACK.
This means that while the commit to restrict mmap on MIPS was "correct",
it had the side effect of causing pthread_create to fail because glibc tries
to allocate an executable stack for new threads in the absense of
PT_GNU_STACK. We should wait until PT_GNU_STACK is implemented in all
the relevant parts of the toolchain (at least gcc and glibc) before
enabling this again.
src/shared/seccomp-util.c