mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
exec: Move the comment from above de_thread to above unshare_sighand
The comment describes work that now happens in unshare_sighand so move the comment where it makes sense. Link: https://lkml.kernel.org/r/87mu6i6zcs.fsf_-_@x220.int.ebiederm.org Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
parent
b213c2dcbc
commit
7a60ef4803
1 changed files with 6 additions and 6 deletions
12
fs/exec.c
12
fs/exec.c
|
@ -1093,12 +1093,6 @@ static int exec_mmap(struct mm_struct *mm)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* This function makes sure the current process has its own signal table,
|
|
||||||
* so that flush_signal_handlers can later reset the handlers without
|
|
||||||
* disturbing other processes. (Other processes might share the signal
|
|
||||||
* table via the CLONE_SIGHAND option to clone().)
|
|
||||||
*/
|
|
||||||
static int de_thread(struct task_struct *tsk)
|
static int de_thread(struct task_struct *tsk)
|
||||||
{
|
{
|
||||||
struct signal_struct *sig = tsk->signal;
|
struct signal_struct *sig = tsk->signal;
|
||||||
|
@ -1240,6 +1234,12 @@ killed:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This function makes sure the current process has its own signal table,
|
||||||
|
* so that flush_signal_handlers can later reset the handlers without
|
||||||
|
* disturbing other processes. (Other processes might share the signal
|
||||||
|
* table via the CLONE_SIGHAND option to clone().)
|
||||||
|
*/
|
||||||
static int unshare_sighand(struct task_struct *me)
|
static int unshare_sighand(struct task_struct *me)
|
||||||
{
|
{
|
||||||
struct sighand_struct *oldsighand = me->sighand;
|
struct sighand_struct *oldsighand = me->sighand;
|
||||||
|
|
Loading…
Add table
Reference in a new issue