From: Jann Horn Date: Sun, 19 Apr 2015 00:48:39 +0000 (+0200) Subject: fs: take i_mutex during prepare_binprm for set[ug]id executables X-Git-Tag: omap-for-v4.1/fixes-rc1~91 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b01fc86b9f425899f8a3a8fc1c47d73c2c20543;p=pandora-kernel.git 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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed