diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-03 19:09:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-03 19:09:09 -0400 |
commit | 3a494318b14b1bc0f59d2d6ce84c505c74d82d2a (patch) | |
tree | 68918bebe684be45630061e10b036132e9db7198 | |
parent | abb139e75c2cdbb955e840d6331cb5863e409d0e (diff) | |
parent | 702e490211b2b7e448ebe1b3a07d97ad2fc07e03 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
Pull user namespace compile fix from Eric W Biederman:
"This tree contains a trivial build fix for one of the staging drivers
when user namespace support is enabled"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
userns: Fix build of drivers/staging/dgrp
-rw-r--r-- | drivers/staging/dgrp/dgrp_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/dgrp/dgrp_common.c b/drivers/staging/dgrp/dgrp_common.c index fce74e7fb834..3553998b72bc 100644 --- a/drivers/staging/dgrp/dgrp_common.c +++ b/drivers/staging/dgrp/dgrp_common.c | |||
@@ -179,9 +179,9 @@ void dgrp_carrier(struct ch_struct *ch) | |||
179 | */ | 179 | */ |
180 | int dgrp_chk_perm(int mode, int op) | 180 | int dgrp_chk_perm(int mode, int op) |
181 | { | 181 | { |
182 | if (!current_euid()) | 182 | if (!uid_eq(GLOBAL_ROOT_UID, current_euid())) |
183 | mode >>= 6; | 183 | mode >>= 6; |
184 | else if (in_egroup_p(0)) | 184 | else if (in_egroup_p(GLOBAL_ROOT_GID)) |
185 | mode >>= 3; | 185 | mode >>= 3; |
186 | 186 | ||
187 | if ((mode & op & 0007) == op) | 187 | if ((mode & op & 0007) == op) |