CAP_AUDIT_WRITE is now required by xauth-pam not eap-gtc plugin
authorTobias Brunner <tobias@strongswan.org>
Fri, 17 Aug 2012 12:21:21 +0000 (14:21 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 17 Aug 2012 12:24:48 +0000 (14:24 +0200)
src/libcharon/plugins/eap_gtc/eap_gtc_plugin.c
src/libcharon/plugins/xauth_pam/xauth_pam_plugin.c

index a2bdf74..d579eaa 100644 (file)
 
 #include <daemon.h>
 
-#ifndef CAP_AUDIT_WRITE
-#define CAP_AUDIT_WRITE 29
-#endif
-
 METHOD(plugin_t, get_name, char*,
        eap_gtc_plugin_t *this)
 {
@@ -63,9 +59,6 @@ plugin_t *eap_gtc_plugin_create()
                },
        );
 
-       /* required for PAM authentication */
-       charon->caps->keep(charon->caps, CAP_AUDIT_WRITE);
-
        return &this->plugin;
 }
 
index 363aaf0..b9ba0b5 100644 (file)
 
 #include <daemon.h>
 
+#ifndef CAP_AUDIT_WRITE
+#define CAP_AUDIT_WRITE 29
+#endif
+
 METHOD(plugin_t, get_name, char*,
        xauth_pam_plugin_t *this)
 {
@@ -56,5 +60,8 @@ plugin_t *xauth_pam_plugin_create()
                },
        );
 
+       /* required for PAM authentication */
+       charon->caps->keep(charon->caps, CAP_AUDIT_WRITE);
+
        return &this->plugin;
 }