diff options
| author | Jann Horn <jann@thejh.net> | 2015-04-19 02:48:39 +0200 |
|---|---|---|
| committer | Ethan Chen <intervigil@gmail.com> | 2015-08-05 13:13:26 -0700 |
| commit | bf4c33b3d58493e61c545a890f74fddc32e28564 (patch) | |
| tree | 37cc436b3d17521b69da6900d2d18bb6452e3fa8 /lib/mpi/mpi-inline.c | |
| parent | 6d97d5922a1bff73be1e5c060861cbf3963ff1ae (diff) | |
fs: take i_mutex during prepare_binprm for set[ug]id executables
This prevents a race between chown() and execve(), where chowning a
setuid-user binary to root would momentarily make the binary setuid
root.
This patch was mostly written by Linus Torvalds.
Signed-off-by: Jann Horn <jann@thejh.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Conflicts:
fs/exec.c
Change-Id: Iecebf23d07e299689e4ba4fd74ea8821ef96e72b
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions
