mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
exec: introduce finalize_exec() before start_thread()
Provide a final callback into fs/exec.c before start_thread() takes over, to handle any last-minute changes, like the coming restoration of the stack limit. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Kees Cook <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Ben Hutchings <[email protected]> Cc: Ben Hutchings <[email protected]> Cc: Brad Spengler <[email protected]> Cc: Greg KH <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: "Jason A. Donenfeld" <[email protected]> Cc: Laura Abbott <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Willy Tarreau <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8f2af155b5
commit
b838383133
6 changed files with 11 additions and 0 deletions
|
|
@ -1384,6 +1384,12 @@ void setup_new_exec(struct linux_binprm * bprm)
|
|||
}
|
||||
EXPORT_SYMBOL(setup_new_exec);
|
||||
|
||||
/* Runs immediately before start_thread() takes over. */
|
||||
void finalize_exec(struct linux_binprm *bprm)
|
||||
{
|
||||
}
|
||||
EXPORT_SYMBOL(finalize_exec);
|
||||
|
||||
/*
|
||||
* Prepare credentials and lock ->cred_guard_mutex.
|
||||
* install_exec_creds() commits the new creds and drops the lock.
|
||||
|
|
|
|||
Loading…
Reference in a new issue