Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146416
b: refs/heads/master
c: ecd6de3
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and James Morris committed Apr 29, 2009
1 parent 7c5f48e commit c3c6373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3bcac0263f0b45e67a64034ebcb69eb9abb742f4
refs/heads/master: ecd6de3c88e8cbcad175b2eab48ba05c2014f7b6
11 changes: 3 additions & 8 deletions trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2371,10 +2371,8 @@ static void selinux_bprm_committed_creds(struct linux_binprm *bprm)
{
const struct task_security_struct *tsec = current_security();
struct itimerval itimer;
struct sighand_struct *psig;
u32 osid, sid;
int rc, i;
unsigned long flags;

osid = tsec->osid;
sid = tsec->sid;
Expand Down Expand Up @@ -2405,12 +2403,9 @@ static void selinux_bprm_committed_creds(struct linux_binprm *bprm)

/* Wake up the parent if it is waiting so that it can recheck
* wait permission to the new task SID. */
read_lock_irq(&tasklist_lock);
psig = current->parent->sighand;
spin_lock_irqsave(&psig->siglock, flags);
wake_up_interruptible(&current->parent->signal->wait_chldexit);
spin_unlock_irqrestore(&psig->siglock, flags);
read_unlock_irq(&tasklist_lock);
read_lock(&tasklist_lock);
wake_up_interruptible(&current->real_parent->signal->wait_chldexit);
read_unlock(&tasklist_lock);
}

/* superblock security operations */
Expand Down

0 comments on commit c3c6373

Please sign in to comment.