]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/seccomp-util.c
seccomp: update "@default" seccomp group a bit
authorLennart Poettering <lennart@poettering.net>
Wed, 13 Sep 2017 17:27:51 +0000 (19:27 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Sep 2017 13:45:21 +0000 (15:45 +0200)
commite41b0f42a88cbc5733f994cd3de408f33d9ada89
tree05751f557f973b3875307cca46476edb2406d4ce
parentdbbf424c8b77c1649e822c20c0b1fee1d2cfd93d
seccomp: update "@default" seccomp group a bit

Let's add more of the most basic operations to "@default" as absolute
baseline needed by glibc and such to operate. Specifically:

futex, get_robust_list, get_thread_area, membarrier, set_robust_list,
set_thread_area, set_tid_address are all required to properly implement
mutexes and other thread synchronization logic. Given that a ton of
datastructures are protected by mutexes (such as stdio and such), let's
just whitelist this by default, so that things can just work.

restart_syscall is used to implement EAGAIN SA_RESTART stuff in some
archs, and synthesized by the kernel without any explicit user logic,
hence let's make this work out of the box.
src/shared/seccomp-util.c