projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: Use netlink_ns_capable to verify the permisions of netlink messages
[cascardo/linux.git]
/
drivers
/
connector
/
cn_proc.c
diff --git
a/drivers/connector/cn_proc.c
b/drivers/connector/cn_proc.c
index
148d707
..
ccdd4c7
100644
(file)
--- a/
drivers/connector/cn_proc.c
+++ b/
drivers/connector/cn_proc.c
@@
-369,7
+369,7
@@
static void cn_proc_mcast_ctl(struct cn_msg *msg,
return;
/* Can only change if privileged. */
- if (!
capable(
CAP_NET_ADMIN)) {
+ if (!
__netlink_ns_capable(nsp, &init_user_ns,
CAP_NET_ADMIN)) {
err = EPERM;
goto out;
}