X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fgroups.c;h=1cc476d52dd3b6e477ebd2d70a0d97b61219f189;hb=50f3515828024582402044bcced6804c070c491c;hp=253dc0f35cf4c30786d1ff3565427d1374762a04;hpb=2301b65b86df8b80e6779ce9885ad62a5c4adc38;p=karo-tx-linux.git diff --git a/kernel/groups.c b/kernel/groups.c index 253dc0f35cf4..1cc476d52dd3 100644 --- a/kernel/groups.c +++ b/kernel/groups.c @@ -233,7 +233,7 @@ SYSCALL_DEFINE2(setgroups, int, gidsetsize, gid_t __user *, grouplist) struct group_info *group_info; int retval; - if (!capable(CAP_SETGID)) + if (!nsown_capable(CAP_SETGID)) return -EPERM; if ((unsigned)gidsetsize > NGROUPS_MAX) return -EINVAL;