projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5788c56
)
pohmelfs/connector: Disallow unpliviged users to configure pohmelfs
author
Philipp Reisner
<philipp.reisner@linbit.com>
Fri, 2 Oct 2009 02:40:10 +0000
(
02:40
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 2 Oct 2009 17:54:15 +0000
(10:54 -0700)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/staging/pohmelfs/config.c
patch
|
blob
|
history
diff --git
a/drivers/staging/pohmelfs/config.c
b/drivers/staging/pohmelfs/config.c
index
c9162b3
..
5d04bf5
100644
(file)
--- a/
drivers/staging/pohmelfs/config.c
+++ b/
drivers/staging/pohmelfs/config.c
@@
-531,6
+531,9
@@
static void pohmelfs_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *n
{
int err;
+ if (!cap_raised(nsp->eff_cap, CAP_SYS_ADMIN))
+ return;
+
switch (msg->flags) {
case POHMELFS_FLAGS_ADD:
case POHMELFS_FLAGS_DEL: