Cyrill Gorcunov 71fe97e185 prctl: PR_SET_MM -- factor out mmap_sem when updating mm::exe_file
Instead of taking mm->mmap_sem inside prctl_set_mm_exe_file() move it out
and rename the helper to prctl_set_mm_exe_file_locked().  This will allow
to reuse this function in a next patch.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Kees Cook <keescook@chromium.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Andrew Vagin <avagin@openvz.org>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Vasiliy Kulikov <segoon@openwall.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Julien Tinnes <jln@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-10-09 22:25:55 -04:00
..
2014-06-12 16:18:45 +02:00
2014-10-02 16:28:44 -07:00
2014-10-08 12:49:23 -04:00
2014-08-08 15:57:18 -07:00
2014-09-18 12:32:52 -04:00
2014-07-05 11:17:45 +02:00
2014-10-02 16:28:44 -07:00
2014-09-10 15:42:12 -07:00
2014-08-08 15:57:32 -07:00
2014-10-08 05:34:24 -04:00
2014-08-08 15:57:24 -07:00
2014-10-07 20:39:25 -04:00
2013-09-11 15:58:27 -07:00
2014-08-08 15:57:22 -07:00