diff options
author | Jann Horn <jann@thejh.net> | 2015-04-19 02:48:39 +0200 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2015-05-17 19:12:32 -0400 |
commit | 7f1a6ae73b5c2d24b21d9a27928ceacef3a9a939 (patch) | |
tree | 7440e34e001cb97ead071e2072aefdc3da2f45ca /kernel | |
parent | c42f3e154ec94d298480397cc82613d26b712449 (diff) | |
download | lwn-7f1a6ae73b5c2d24b21d9a27928ceacef3a9a939.tar.gz lwn-7f1a6ae73b5c2d24b21d9a27928ceacef3a9a939.zip |
fs: take i_mutex during prepare_binprm for set[ug]id executables
[ Upstream commit 8b01fc86b9f425899f8a3a8fc1c47d73c2c20543 ]
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: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions