History

SELinux: clear parent death signal on SID transitions

Clear parent death signal on SID transitions to prevent unauthorized signaling between SIDs.

Stephen Smalley committed 19 years ago

Commit 4ac212a1 parent a1c582d1 file · +3 −0Browse files

Unified · Split

security/selinux/hooks.c+3−0
@@ -1907,6 +1907,9 @@ static void selinux_bprm_post_apply_creds(struct linux_binprm *bprm) · 1906 unmodified lines
19071907 spin_unlock_irq(&current->sighand->siglock);
19081908 }
19091909
1910+ /* Always clear parent death signal on SID transitions. */
1911+ current->pdeath_signal = 0;
1912+
19101913 /* Check whether the new SID can inherit resource limits
19111914 from the old SID. If not, reset all soft limits to
19121915 the lower of the current task's hard limit and the init