|
@@ -1404,7 +1404,6 @@ int search_binary_handler(struct linux_binprm *bprm)
|
|
if (bprm->file)
|
|
if (bprm->file)
|
|
fput(bprm->file);
|
|
fput(bprm->file);
|
|
bprm->file = NULL;
|
|
bprm->file = NULL;
|
|
- proc_exec_connector(current);
|
|
|
|
return retval;
|
|
return retval;
|
|
}
|
|
}
|
|
read_lock(&binfmt_lock);
|
|
read_lock(&binfmt_lock);
|
|
@@ -1455,6 +1454,7 @@ static int exec_binprm(struct linux_binprm *bprm)
|
|
trace_sched_process_exec(current, old_pid, bprm);
|
|
trace_sched_process_exec(current, old_pid, bprm);
|
|
ptrace_event(PTRACE_EVENT_EXEC, old_vpid);
|
|
ptrace_event(PTRACE_EVENT_EXEC, old_vpid);
|
|
current->did_exec = 1;
|
|
current->did_exec = 1;
|
|
|
|
+ proc_exec_connector(current);
|
|
}
|
|
}
|
|
|
|
|
|
return ret;
|
|
return ret;
|