diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index 752d2c0abd19..51ac4ced1313 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -827,14 +827,9 @@ static void exit_notify(struct task_struct *tsk, int group_dead) | |||
827 | * If the parent exec id doesn't match the exec id we saved | 827 | * If the parent exec id doesn't match the exec id we saved |
828 | * when we started then we know the parent has changed security | 828 | * when we started then we know the parent has changed security |
829 | * domain. | 829 | * domain. |
830 | * | ||
831 | * If our self_exec id doesn't match our parent_exec_id then | ||
832 | * we have changed execution domain as these two values started | ||
833 | * the same after a fork. | ||
834 | */ | 830 | */ |
835 | if (thread_group_leader(tsk) && tsk->exit_signal != SIGCHLD && | 831 | if (thread_group_leader(tsk) && tsk->exit_signal != SIGCHLD && |
836 | (tsk->parent_exec_id != tsk->real_parent->self_exec_id || | 832 | tsk->parent_exec_id != tsk->real_parent->self_exec_id) |
837 | tsk->self_exec_id != tsk->parent_exec_id)) | ||
838 | tsk->exit_signal = SIGCHLD; | 833 | tsk->exit_signal = SIGCHLD; |
839 | 834 | ||
840 | if (unlikely(tsk->ptrace)) { | 835 | if (unlikely(tsk->ptrace)) { |