Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232574
b: refs/heads/master
c: aa5bd67
h: refs/heads/master
v: v3
  • Loading branch information
Kacper Kornet authored and Linus Torvalds committed Jan 31, 2011
1 parent d0ad5c9 commit 83970a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 2f215a7d6d1d8ed0bbdda4fc4f7d64e3a1d46acc
refs/heads/master: aa5bd67dcfdf9af34c7fa36ebc87d4e1f7e91873
3 changes: 2 additions & 1 deletion trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,8 @@ static int check_prlimit_permission(struct task_struct *task)
const struct cred *cred = current_cred(), *tcred;

tcred = __task_cred(task);
if ((cred->uid != tcred->euid ||
if (current != task &&
(cred->uid != tcred->euid ||
cred->uid != tcred->suid ||
cred->uid != tcred->uid ||
cred->gid != tcred->egid ||
Expand Down

0 comments on commit 83970a8

Please sign in to comment.