diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 24e1b1885de7c5b379b7c19c9cf7b760e1664c41..9f3124b08867536aca7cc580046d844e341ac6d5 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -2977,11 +2977,7 @@ static int selinux_task_prctl(int option, static int selinux_task_wait(struct task_struct *p) { - u32 perm; - - perm = signal_to_av(p->exit_signal); - - return task_has_perm(p, current, perm); + return task_has_perm(p, current, PROCESS__SIGCHLD); } static void selinux_task_reparent_to_init(struct task_struct *p)