projects
/
linux-flexiantxendom0-3.2.10.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
connector/userns: replace netlink uses of cap_raised() with capable()
[linux-flexiantxendom0-3.2.10.git]
/
drivers
/
md
/
dm-log-userspace-transfer.c
diff --git
a/drivers/md/dm-log-userspace-transfer.c
b/drivers/md/dm-log-userspace-transfer.c
index
1f23e04
..
08d9a20
100644
(file)
--- a/
drivers/md/dm-log-userspace-transfer.c
+++ b/
drivers/md/dm-log-userspace-transfer.c
@@
-134,7
+134,7
@@
static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp)
{
struct dm_ulog_request *tfr = (struct dm_ulog_request *)(msg + 1);
- if (!cap_raised(current_cap(), CAP_SYS_ADMIN))
+ if (!capable(CAP_SYS_ADMIN))
return;
spin_lock(&receiving_list_lock);