]> git.baikalelectronics.ru Git - kernel.git/commit
sched: move no_new_privs into new atomic flags
authorKees Cook <keescook@chromium.org>
Wed, 21 May 2014 22:23:46 +0000 (15:23 -0700)
committerKees Cook <keescook@chromium.org>
Fri, 18 Jul 2014 19:13:38 +0000 (12:13 -0700)
commitb11c47756f548c33770f7772bb1ab57fc1697b08
tree522641b08f4a465035910a74a3871ad38e62df01
parent973256d4e5af9b56137a0699870724dcdb2dea0b
sched: move no_new_privs into new atomic flags

Since seccomp transitions between threads requires updates to the
no_new_privs flag to be atomic, the flag must be part of an atomic flag
set. This moves the nnp flag into a separate task field, and introduces
accessors.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Andy Lutomirski <luto@amacapital.net>
fs/exec.c
include/linux/sched.h
kernel/seccomp.c
kernel/sys.c
security/apparmor/domain.c