Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/jmorris/selinux-2.6

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/selinux-2.6:
  SELinux: always check SIGCHLD in selinux_task_wait
  • Loading branch information
Linus Torvalds committed Oct 23, 2007
2 parents e5eca6a + 8a53514 commit 48d2268
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48d2268

Please sign in to comment.