aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/daemon.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-08-28 16:27:48 +0000
committerMartin Willi <martin@strongswan.org>2008-08-28 16:27:48 +0000
commite609b1cda2197ffaba506de1ef93076a5f0372ae (patch)
treecf3e06431ec534f8f7d7d01c3d524fa1806a500a /src/charon/daemon.h
parentdc98e5015355c648d253f287e093dc6b34e0d7b3 (diff)
downloadstrongswan-e609b1cda2197ffaba506de1ef93076a5f0372ae.tar.bz2
strongswan-e609b1cda2197ffaba506de1ef93076a5f0372ae.tar.xz
capability API to allow plugin-controlled capability set
Diffstat (limited to 'src/charon/daemon.h')
-rw-r--r--src/charon/daemon.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/charon/daemon.h b/src/charon/daemon.h
index 3633e4555..3bde9a25d 100644
--- a/src/charon/daemon.h
+++ b/src/charon/daemon.h
@@ -303,6 +303,15 @@ struct daemon_t {
gid_t gid;
/**
+ * Do not drop a given capability after initialization.
+ *
+ * Some plugins might need additional capabilites. They tell the daemon
+ * during plugin initialization which one they need, the daemon won't
+ * drop these.
+ */
+ void (*keep_cap)(daemon_t *this, u_int cap);
+
+ /**
* Shut down the daemon.
*
* @param reason describtion why it will be killed