seccomp: MemoryDenyWriteExecute= should affect both mmap() and mmap2() (#5254)
authorLennart Poettering <lennart@poettering.net>
Wed, 8 Feb 2017 14:14:02 +0000 (15:14 +0100)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Wed, 8 Feb 2017 14:14:02 +0000 (15:14 +0100)
commit8a50cf6957f12dbb1f90411659da9b959a1983ff
tree478a9a32d69f6af15cee06ec346e140d686143a5
parentb6f08ecda90b5ccb6c9c09e5976a627f5918dc0b
seccomp: MemoryDenyWriteExecute= should affect both mmap() and mmap2() (#5254)

On i386 we block the old mmap() call entirely, since we cannot properly
filter it. Thankfully it hasn't been used by glibc since quite some
time.

Fixes: #5240
man/systemd.exec.xml
src/shared/seccomp-util.c
src/shared/seccomp-util.h
src/test/test-seccomp.c