aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/lookip/lookip_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/plugins/lookip/lookip_plugin.c')
-rw-r--r--src/libcharon/plugins/lookip/lookip_plugin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcharon/plugins/lookip/lookip_plugin.c b/src/libcharon/plugins/lookip/lookip_plugin.c
index 319d72753..89bdad92e 100644
--- a/src/libcharon/plugins/lookip/lookip_plugin.c
+++ b/src/libcharon/plugins/lookip/lookip_plugin.c
@@ -92,6 +92,12 @@ plugin_t *lookip_plugin_create()
{
private_lookip_plugin_t *this;
+ if (!lib->caps->keep(lib->caps, CAP_CHOWN))
+ { /* required to chown(2) control socket */
+ DBG1(DBG_CFG, "lookip plugin requires CAP_CHOWN capability");
+ return NULL;
+ }
+
INIT(this,
.public = {
.plugin = {