Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306020
b: refs/heads/master
c: 14a590c
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman committed May 15, 2012
1 parent 6ee3650 commit 3d0388a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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: 8751e03958f2adbfba6a0f186f4c5797c950c22a
refs/heads/master: 14a590c3f987977d7b09ec926481ee0238c08eee
1 change: 0 additions & 1 deletion trunk/init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,6 @@ config UIDGID_CONVERTED

# List of kernel pieces that need user namespace work
# Features
depends on CGROUPS = n
depends on MIGRATION = n
depends on NUMA = n
depends on SYSVIPC = n
Expand Down
6 changes: 3 additions & 3 deletions trunk/kernel/cgroup.c
Original file line number Diff line number Diff line change
Expand Up @@ -2160,9 +2160,9 @@ static int attach_task_by_pid(struct cgroup *cgrp, u64 pid, bool threadgroup)
* only need to check permissions on one of them.
*/
tcred = __task_cred(tsk);
if (cred->euid &&
cred->euid != tcred->uid &&
cred->euid != tcred->suid) {
if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) &&
!uid_eq(cred->euid, tcred->uid) &&
!uid_eq(cred->euid, tcred->suid)) {
rcu_read_unlock();
ret = -EACCES;
goto out_unlock_cgroup;
Expand Down

0 comments on commit 3d0388a

Please sign in to comment.