[PATCH 4.0 7/7] fs: take i_mutex during prepare_binprm for set[ug]id executables

2015-04-26 Thread Greg Kroah-Hartman
4.0-stable review patch. If anyone has any objections, please let me know. -- From: Jann Horn commit 8b01fc86b9f425899f8a3a8fc1c47d73c2c20543 upstream. This prevents a race between chown() and execve(), where chowning a setuid-user binary to root would momentarily make the

[PATCH 4.0 7/7] fs: take i_mutex during prepare_binprm for set[ug]id executables

2015-04-26 Thread Greg Kroah-Hartman
4.0-stable review patch. If anyone has any objections, please let me know. -- From: Jann Horn j...@thejh.net commit 8b01fc86b9f425899f8a3a8fc1c47d73c2c20543 upstream. This prevents a race between chown() and execve(), where chowning a setuid-user binary to root would