diff options
author | Jann Horn <jann@thejh.net> | 2015-04-19 02:48:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-06 21:59:21 +0200 |
commit | de70236fbe30749fb8c317088c16a97e700fe232 (patch) | |
tree | a160f0a33030ab0bf7b7b2d65a62caf5e9e3506f /arch/m32r | |
parent | cc87bcf04caf19d6a6b8c996f39226477d06c26f (diff) |
fs: take i_mutex during prepare_binprm for set[ug]id executables
commit 8b01fc86b9f425899f8a3a8fc1c47d73c2c20543 upstream.
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>
Signed-off-by: Charles Williams <ciwillia@brocade.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/m32r')
0 files changed, 0 insertions, 0 deletions