forked from rubenslte/android_kernel_samsung_msm8226
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> Conflicts include/linux/sched.h kernel/sys.c EDIT: Sumsung/klte tree already had a few changes from the original patch, so they are ommited/removed from here. Change-Id: If83d4adaca8920efd278ff4e3d80a024dd079cde Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>