]> www.infradead.org Git - users/jedix/linux-maple.git/commit
seccomp: always propagate NO_NEW_PRIVS on tsync
authorJann Horn <jann@thejh.net>
Sat, 26 Dec 2015 05:00:48 +0000 (06:00 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 26 May 2016 22:44:35 +0000 (15:44 -0700)
commit4c2767c7bca0956fdaed6ede67e7307ef4fcf569
treef61d4a2396fb2d15e0a526bd4d682226104bb837
parent7526c8a5e7f87274f825ff76306374f23cb5119b
seccomp: always propagate NO_NEW_PRIVS on tsync

Orabug: 23330789

[ Upstream commit 103502a35cfce0710909da874f092cb44823ca03 ]

Before this patch, a process with some permissive seccomp filter
that was applied by root without NO_NEW_PRIVS was able to add
more filters to itself without setting NO_NEW_PRIVS by setting
the new filter from a throwaway thread with NO_NEW_PRIVS.

Signed-off-by: Jann Horn <jann@thejh.net>
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
(cherry picked from commit 988590966531b9ab4d7c6101f02a6f065c5df7a5)

Signed-off-by: Dan Duval <dan.duval@oracle.com>
kernel/seccomp.c