]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
seccomp: remove 'gettid' syscall from '@process' syscall set (#6989)
authorDjalal Harouni <tixxdz@opendz.org>
Thu, 5 Oct 2017 12:46:41 +0000 (14:46 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 5 Oct 2017 12:46:41 +0000 (14:46 +0200)
The gettid syscall is one of the most basic syscalls, it never fails and
it operates on current thread. Most applications are not suposed to use
it, however even if it is used there is no much justification on blocking
it. This patch removes it from '@process' set so if users blacklist this
set to block setns or clone syscalls, the gettid syscall will still be
available. Of course they can always block gettid explicitly.

Note that the gettid is already in the '@default' set.

src/shared/seccomp-util.c

index 73dc571b6bbbac4ea774b5777e5f192ddb2b8710..a2354325d1899eb2fa29b378d8492fff6bed73c0 100644 (file)
@@ -647,7 +647,6 @@ const SyscallFilterSet syscall_filter_sets[_SYSCALL_FILTER_SET_MAX] = {
                 "execveat\0"
                 "fork\0"
                 "getrusage\0"
-                "gettid\0"
                 "kill\0"
                 "prctl\0"
                 "rt_sigqueueinfo\0"