exec: Consolidate pdeath_signal clearing
authorKees Cook <keescook@chromium.org>
Tue, 18 Jul 2017 22:25:36 +0000 (15:25 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 1 Aug 2017 19:03:14 +0000 (12:03 -0700)
commitfe8993b3a05cbba6318a54e0f85901aaea6fc244
tree34631e3a10ab98444573ce343c170d26a6211a04
parent64701dee4178eb4a771b8b36cd86560f5b0e2460
exec: Consolidate pdeath_signal clearing

Instead of an additional secureexec check for pdeath_signal, just move it
up into the initial secureexec test. Neither perf nor arch code touches
pdeath_signal, so the relocation shouldn't change anything.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Serge Hallyn <serge@hallyn.com>
fs/exec.c