diff options
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 6ac501a2dcc6..0b627d9c93d8 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1671,7 +1671,7 @@ out: | |||
1671 | 1671 | ||
1672 | static int test_perm(int mode, int op) | 1672 | static int test_perm(int mode, int op) |
1673 | { | 1673 | { |
1674 | if (!current->euid) | 1674 | if (!current_euid()) |
1675 | mode >>= 6; | 1675 | mode >>= 6; |
1676 | else if (in_egroup_p(0)) | 1676 | else if (in_egroup_p(0)) |
1677 | mode >>= 3; | 1677 | mode >>= 3; |