simplified capability dropping

This commit is contained in:
Martin Willi
2007-05-09 13:12:06 +00:00
parent 3cd3f48428
commit a6a039aa10
9 changed files with 32 additions and 51 deletions
+2 -5
View File
@@ -422,12 +422,9 @@ struct daemon_t {
* @brief Let the calling thread drop its capabilities.
*
* @param this calling daemon
* @param change_uid TRUE to change UID/GID to IPSEC_UID/IPSEC_GID
* @param netlink TRUE to keep CAP_NET_ADMIN (using netlink)
* @param bind TRUE to keep CAP_NET_BIND_SERVICE and CAP_NET_RAW
* @param full TRUE to drop as many as possible
*/
void (*drop_capabilities) (daemon_t *this, bool change_uid,
bool netlink, bool bind);
void (*drop_capabilities) (daemon_t *this, bool full);
/**
* @brief Shut down the daemon.