Skip to content

Commit

Permalink
SELinux: clear parent death signal on SID transitions
Browse files Browse the repository at this point in the history
Clear parent death signal on SID transitions to prevent unauthorized
signaling between SIDs.

Signed-off-by:  Stephen Smalley <[email protected]>
Acked-by: Eric Paris <[email protected]>
Signed-off-by: James Morris <[email protected]>
  • Loading branch information
stephensmalley authored and James Morris committed Aug 31, 2007
1 parent a1c582d commit 4ac212a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -1907,6 +1907,9 @@ static void selinux_bprm_post_apply_creds(struct linux_binprm *bprm)
spin_unlock_irq(&current->sighand->siglock);
}

/* Always clear parent death signal on SID transitions. */
current->pdeath_signal = 0;

/* Check whether the new SID can inherit resource limits
from the old SID. If not, reset all soft limits to
the lower of the current task's hard limit and the init
Expand Down

0 comments on commit 4ac212a

Please sign in to comment.