From: Oleg Nesterov Date: Wed, 11 Sep 2013 21:24:40 +0000 (-0700) Subject: exec: proc_exec_connector() should be called only once X-Git-Tag: v3.12-rc1~52^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9beb266f2d7e5362c5bb9f999255aa1af5318aef;p=pandora-kernel.git exec: proc_exec_connector() should be called only once A separate one-liner with the minor fix. PROC_EVENT_EXEC reports the "exec" event, but this message is sent at least twice if search_binary_handler() is called by ->load_binary() recursively, say, load_script(). Move it to exec_binprm(), this is "depth == 0" code too. Signed-off-by: Oleg Nesterov Acked-by: Kees Cook Cc: Al Viro Cc: Evgeniy Polyakov Cc: Zach Levis Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed