exec: clarify reasoning for euid/egid reset
authorKees Cook <keescook@chromium.org>
Tue, 17 May 2016 19:14:39 +0000 (12:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 17 May 2016 20:56:53 +0000 (13:56 -0700)
commitcb6fd68fdd4a94880a99ad8515844c7a25e50d3e
tree766b14f48de74fcc5bac718599070fd3aab7fcee
parent7f427d3a6029331304f91ef4d7cf646f054216d2
exec: clarify reasoning for euid/egid reset

This section of code initially looks redundant, but is required. This
improves the comment to explain more clearly why the reset is needed.

Signed-off-by: Kees Cook <keescook@chromium.org>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/exec.c