diff options
author | Jann Horn <jann@thejh.net> | 2015-04-19 02:48:39 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-03 19:48:09 -0700 |
commit | 9eae8ac6ab40b896b472c526afe7847e798f4f36 (patch) | |
tree | 2e92177fece253bf6e17328b406a7cc3f65b548e /Kbuild | |
parent | 31884f5463499bf023772ce94b003d40b5db08fc (diff) | |
download | linux-stable-9eae8ac6ab40b896b472c526afe7847e798f4f36.tar.gz linux-stable-9eae8ac6ab40b896b472c526afe7847e798f4f36.tar.bz2 linux-stable-9eae8ac6ab40b896b472c526afe7847e798f4f36.zip |
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: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Sheng Yong <shengyong1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions