aboutsummaryrefslogtreecommitdiffstats
path: root/src/libhydra/plugins/kernel_pfkey
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-07-08 18:24:43 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-18 15:25:35 +0200
commitdfc99020137e1722ec415d08006424c8b81c3c04 (patch)
tree2e1c5103f6f64feb2eb65dfad2900c8f77699965 /src/libhydra/plugins/kernel_pfkey
parent027676f7500b7d94140adc979959541b08fc4a89 (diff)
downloadstrongswan-dfc99020137e1722ec415d08006424c8b81c3c04.tar.bz2
strongswan-dfc99020137e1722ec415d08006424c8b81c3c04.tar.xz
capabilities: Some plugins don't actually require capabilities at runtime
Diffstat (limited to 'src/libhydra/plugins/kernel_pfkey')
-rw-r--r--src/libhydra/plugins/kernel_pfkey/kernel_pfkey_plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_plugin.c b/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_plugin.c
index d2c00b0f2..61d576547 100644
--- a/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_plugin.c
+++ b/src/libhydra/plugins/kernel_pfkey/kernel_pfkey_plugin.c
@@ -62,7 +62,7 @@ plugin_t *kernel_pfkey_plugin_create()
{
private_kernel_pfkey_plugin_t *this;
- if (!lib->caps->keep(lib->caps, CAP_NET_ADMIN))
+ if (!lib->caps->check(lib->caps, CAP_NET_ADMIN))
{ /* required to open PF_KEY sockets */
DBG1(DBG_KNL, "kernel-pfkey plugin requires CAP_NET_ADMIN capability");
return NULL;