Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305998
b: refs/heads/master
c: 9c806aa
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman committed May 3, 2012
1 parent 38279c0 commit 02af856
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 76b6db010297d4928ab7b7e7c78dd982f413f0a4
refs/heads/master: 9c806aa06f8e121c6058db8e8073798aa5c4355b
7 changes: 2 additions & 5 deletions trunk/kernel/sched/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -4042,11 +4042,8 @@ static bool check_same_owner(struct task_struct *p)

rcu_read_lock();
pcred = __task_cred(p);
if (cred->user_ns == pcred->user_ns)
match = (cred->euid == pcred->euid ||
cred->euid == pcred->uid);
else
match = false;
match = (uid_eq(cred->euid, pcred->euid) ||
uid_eq(cred->euid, pcred->uid));
rcu_read_unlock();
return match;
}
Expand Down

0 comments on commit 02af856

Please sign in to comment.