Commit 2388777a authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

exec: Rename flush_old_exec begin_new_exec



There is and has been for a very long time been a lot more going on in
flush_old_exec than just flushing the old state.  After the movement
of code from setup_new_exec there is a whole lot more going on than
just flushing the old executables state.

Rename flush_old_exec to begin_new_exec to more accurately reflect
what this function does.

Reviewed-by: default avatarKees Cook <keescook@chromium.org>
Reviewed-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent df9e4d2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1524,7 +1524,7 @@ display-graph option::
   => remove_vma
   => exit_mmap
   => mmput
   => flush_old_exec
   => begin_new_exec
   => load_elf_binary
   => search_binary_handler
   => __do_execve_file.isra.32
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ static int load_aout_binary(struct linux_binprm *bprm)
		return -ENOMEM;

	/* Flush all traces of the currently running executable */
	retval = flush_old_exec(bprm);
	retval = begin_new_exec(bprm);
	if (retval)
		return retval;

+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ static int load_aout_binary(struct linux_binprm * bprm)
		return -ENOMEM;

	/* Flush all traces of the currently running executable */
	retval = flush_old_exec(bprm);
	retval = begin_new_exec(bprm);
	if (retval)
		return retval;

+1 −1
Original line number Diff line number Diff line
@@ -844,7 +844,7 @@ out_free_interp:
		goto out_free_dentry;

	/* Flush all traces of the currently running executable */
	retval = flush_old_exec(bprm);
	retval = begin_new_exec(bprm);
	if (retval)
		goto out_free_dentry;

+1 −1
Original line number Diff line number Diff line
@@ -338,7 +338,7 @@ static int load_elf_fdpic_binary(struct linux_binprm *bprm)
		interp_params.flags |= ELF_FDPIC_FLAG_CONSTDISP;

	/* flush all traces of the currently running executable */
	retval = flush_old_exec(bprm);
	retval = begin_new_exec(bprm);
	if (retval)
		goto error;

Loading