capabilities: Some plugins don't actually require capabilities at runtime
[strongswan.git] / src / libcharon / plugins / lookip / lookip_plugin.c
index 89bdad9..4466ad9 100644 (file)
@@ -92,7 +92,7 @@ plugin_t *lookip_plugin_create()
 {
        private_lookip_plugin_t *this;
 
-       if (!lib->caps->keep(lib->caps, CAP_CHOWN))
+       if (!lib->caps->check(lib->caps, CAP_CHOWN))
        {       /* required to chown(2) control socket */
                DBG1(DBG_CFG, "lookip plugin requires CAP_CHOWN capability");
                return NULL;