Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306017
b: refs/heads/master
c: 091bd3e
h: refs/heads/master
i:
  306015: f00308f
v: v3
  • Loading branch information
Eric W. Biederman committed May 15, 2012
1 parent a1d9931 commit 0502f85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 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: dcb0f22282e680ee5202ab7574ce78beb3803a9f
refs/heads/master: 091bd3ea4e7ff4da8509978b9be93dc9d8cf0680
4 changes: 2 additions & 2 deletions trunk/fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ void register_sysctl_root(struct ctl_table_root *root)

static int test_perm(int mode, int op)
{
if (!current_euid())
if (uid_eq(current_euid(), GLOBAL_ROOT_UID))
mode >>= 6;
else if (in_egroup_p(0))
else if (in_egroup_p(GLOBAL_ROOT_GID))
mode >>= 3;
if ((op & ~mode & (MAY_READ|MAY_WRITE|MAY_EXEC)) == 0)
return 0;
Expand Down
1 change: 0 additions & 1 deletion trunk/init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,6 @@ config UIDGID_CONVERTED
depends on NTFS_FS = n
depends on OCFS2_FS = n
depends on OMFS_FS = n
depends on PROC_SYSCTL = n
depends on QNX4FS_FS = n
depends on QNX6FS_FS = n
depends on REISERFS_FS = n
Expand Down

0 comments on commit 0502f85

Please sign in to comment.