projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
userns: Kill nsown_capable it makes the wrong thing easy
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
kernel
/
uid16.c
diff --git
a/kernel/uid16.c
b/kernel/uid16.c
index
f6c83d7
..
602e5bb
100644
(file)
--- a/
kernel/uid16.c
+++ b/
kernel/uid16.c
@@
-176,7
+176,7
@@
SYSCALL_DEFINE2(setgroups16, int, gidsetsize, old_gid_t __user *, grouplist)
struct group_info *group_info;
int retval;
- if (!ns
own_capable(
CAP_SETGID))
+ if (!ns
_capable(current_user_ns(),
CAP_SETGID))
return -EPERM;
if ((unsigned)gidsetsize > NGROUPS_MAX)
return -EINVAL;