]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - kernel/seccomp.c
seccomp: always propagate NO_NEW_PRIVS on tsync
authorJann Horn <jann@thejh.net>
Sat, 26 Dec 2015 05:00:48 +0000 (06:00 +0100)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 6 Apr 2016 09:23:50 +0000 (10:23 +0100)
commit95a9c6206a45769f006ecc5e46df171c55d5345f
tree1be58bcbce28a75390b0ffe868372bbb08dc94aa
parentc7a6d9aa8d505a22b09d0b3f1f5d5070ea2c48a3
seccomp: always propagate NO_NEW_PRIVS on tsync

BugLink: http://bugs.launchpad.net/bugs/1553179
commit 103502a35cfce0710909da874f092cb44823ca03 upstream.

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>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
kernel/seccomp.c