]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
commit7c72bab4e35abe8884c3def83aae42b6638685da
tree44c19e44d8621d309a8e987423968074742a4241
parentc05f3c8ff8961c1431014b684586df3c9fbf791b
seccomp: remove 'gettid' syscall from '@process' syscall set (#6989)

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