Merge branch 'thermal-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang...
[pandora-kernel.git] / kernel / uid16.c
index 602e5bb..d58cc4d 100644 (file)
@@ -176,7 +176,7 @@ SYSCALL_DEFINE2(setgroups16, int, gidsetsize, old_gid_t __user *, grouplist)
        struct group_info *group_info;
        int retval;
 
-       if (!ns_capable(current_user_ns(), CAP_SETGID))
+       if (!may_setgroups())
                return -EPERM;
        if ((unsigned)gidsetsize > NGROUPS_MAX)
                return -EINVAL;