Clear parent death signal on SID transitions to prevent unauthorized signaling between SIDs.
Unified · Split
| @@ -1907,6 +1907,9 @@ static void selinux_bprm_post_apply_creds(struct linux_binprm *bprm) · 1906 unmodified lines | ||
| 1907 | 1907 | spin_unlock_irq(¤t->sighand->siglock); |
| 1908 | 1908 | } |
| 1909 | 1909 | |
| 1910 | + /* Always clear parent death signal on SID transitions. */ | |
| 1911 | + current->pdeath_signal = 0; | |
| 1912 | + | |
| 1910 | 1913 | /* Check whether the new SID can inherit resource limits |
| 1911 | 1914 | from the old SID. If not, reset all soft limits to |
| 1912 | 1915 | the lower of the current task's hard limit and the init |