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
1907 spin_unlock_irq(&current->sighand->siglock);1907 spin_unlock_irq(&current->sighand->siglock);
1908 }1908 }
1909 1909
1910 /* Always clear parent death signal on SID transitions. */
1911 current->pdeath_signal = 0;
1912
1910 /* Check whether the new SID can inherit resource limits1913 /* Check whether the new SID can inherit resource limits
1911 from the old SID. If not, reset all soft limits to1914 from the old SID. If not, reset all soft limits to
1912 the lower of the current task's hard limit and the init1915 the lower of the current task's hard limit and the init