summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2013-09-11 14:24:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-09-11 15:59:03 -0700
commit5d1baf3b63bfc8c709dc44df85ff1475c7ef489d (patch)
treec22cad96687d70a544674f7eb823026aecf4ceeb /include
parent96d0df79f2644fc823f26c06491e182d87a90c2a (diff)
downloadlinux-5d1baf3b63bfc8c709dc44df85ff1475c7ef489d.tar.gz
linux-5d1baf3b63bfc8c709dc44df85ff1475c7ef489d.tar.bz2
linux-5d1baf3b63bfc8c709dc44df85ff1475c7ef489d.zip
exec: introduce exec_binprm() for "depth == 0" code
task_pid_nr_ns() and trace/ptrace code in the middle of the recursive search_binary_handler() looks confusing and imho annoying. We only need this code if "depth == 0", lets add a simple helper which calls search_binary_handler() and does trace_sched_process_exec() + ptrace_event(). The patch also moves the setting of task->did_exec, we need to do this only once. Note: we can kill either task->did_exec or PF_FORKNOEXEC. Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Kees Cook <keescook@chromium.org> Cc: Al Viro <viro@ZenIV.linux.org.uk> Cc: Evgeniy Polyakov <zbr@ioremap.net> Cc: Zach Levis <zml@linux.vnet.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions