exec: Weaken dumpability for secureexec
authorKees Cook <keescook@chromium.org>
Tue, 2 Jan 2018 23:21:33 +0000 (15:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jan 2018 18:13:36 +0000 (10:13 -0800)
commite816c201aed5232171f8eb80b5d46ae6516683b9
tree9556435912403047091fd26ba95d98cd3e4d26e8
parent30a7acd573899fd8b8ac39236eff6468b195ac7d
exec: Weaken dumpability for secureexec

This is a logical revert of commit e37fdb785a5f ("exec: Use secureexec
for setting dumpability")

This weakens dumpability back to checking only for uid/gid changes in
current (which is useless), but userspace depends on dumpability not
being tied to secureexec.

  https://bugzilla.redhat.com/show_bug.cgi?id=1528633

Reported-by: Tom Horsley <horsley1953@gmail.com>
Fixes: e37fdb785a5f ("exec: Use secureexec for setting dumpability")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c