diff options
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/hooks.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index dd19ba81201f..5a345115036c 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -2394,11 +2394,12 @@ static void selinux_bprm_committed_creds(struct linux_binprm *bprm) | |||
2394 | memset(&itimer, 0, sizeof itimer); | 2394 | memset(&itimer, 0, sizeof itimer); |
2395 | for (i = 0; i < 3; i++) | 2395 | for (i = 0; i < 3; i++) |
2396 | do_setitimer(i, &itimer, NULL); | 2396 | do_setitimer(i, &itimer, NULL); |
2397 | flush_signals(current); | ||
2398 | spin_lock_irq(¤t->sighand->siglock); | 2397 | spin_lock_irq(¤t->sighand->siglock); |
2399 | flush_signal_handlers(current, 1); | 2398 | if (!(current->signal->flags & SIGNAL_GROUP_EXIT)) { |
2400 | sigemptyset(¤t->blocked); | 2399 | __flush_signals(current); |
2401 | recalc_sigpending(); | 2400 | flush_signal_handlers(current, 1); |
2401 | sigemptyset(¤t->blocked); | ||
2402 | } | ||
2402 | spin_unlock_irq(¤t->sighand->siglock); | 2403 | spin_unlock_irq(¤t->sighand->siglock); |
2403 | } | 2404 | } |
2404 | 2405 | ||