]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite1c877a899d9dfa5391cb3c4663021c5342a717a
tree766b14f48de74fcc5bac718599070fd3aab7fcee
parentfb6300601d44ae5ea71734b4ea1981d3386e2699
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