projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2483647
)
dst/connector: Disallow unpliviged users to configure dst
author
Philipp Reisner
<philipp.reisner@linbit.com>
Fri, 2 Oct 2009 02:40:09 +0000
(
02:40
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 2 Oct 2009 17:54:13 +0000
(10:54 -0700)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/dst/dcore.c
patch
|
blob
|
history
diff --git
a/drivers/staging/dst/dcore.c
b/drivers/staging/dst/dcore.c
index
3943c91
..
ee16010
100644
(file)
--- a/
drivers/staging/dst/dcore.c
+++ b/
drivers/staging/dst/dcore.c
@@
-855,6
+855,11
@@
static void cn_dst_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp)
struct dst_node *n = NULL, *tmp;
unsigned int hash;
+ if (!cap_raised(nsp->eff_cap, CAP_SYS_ADMIN)) {
+ err = -EPERM;
+ goto out;
+ }
+
if (msg->len < sizeof(struct dst_ctl)) {
err = -EBADMSG;
goto out;