commit | f4d76adf8a20aa6401fbcf915128cbad1aff0398 | [log] [tgz] |
---|---|---|
author | Jann Horn <jann@thejh.net> | Sun Apr 19 02:48:39 2015 +0200 |
committer | Giulio Cervera <giulio.cervera@cyanogenmod.org> | Tue Sep 22 14:16:43 2015 +0200 |
tree | 2c10d6228b211306bb798fafb94e3b513af798a9 | |
parent | 332fcd48b23471fe6d03f4d10ead16c05c62c2f2 [diff] |
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 <jann@thejh.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Change-Id: Iecebf23d07e299689e4ba4fd74ea8821ef96e72b