aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/load_tester/load_tester_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-07-18 15:46:17 +0200
committerMartin Willi <martin@revosec.ch>2013-07-18 16:00:31 +0200
commitb4b3959b2233f881078f866f50d3296cca235438 (patch)
tree7a85e32e9b411526a846ef004f6db15cadcb8ea1 /src/libcharon/plugins/load_tester/load_tester_plugin.c
parent1897dd730fa5462edbd22601bdb1231fbaab3fa6 (diff)
downloadstrongswan-b4b3959b2233f881078f866f50d3296cca235438.tar.bz2
strongswan-b4b3959b2233f881078f866f50d3296cca235438.tar.xz
stream-service: move CAP_CHOWN check from plugins to service constructor
A plugin service can be a TCP socket now, so it does not make much sense to strictly check for CAP_CHOWN.
Diffstat (limited to 'src/libcharon/plugins/load_tester/load_tester_plugin.c')
-rw-r--r--src/libcharon/plugins/load_tester/load_tester_plugin.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libcharon/plugins/load_tester/load_tester_plugin.c b/src/libcharon/plugins/load_tester/load_tester_plugin.c
index 7f2d425fd..03557a269 100644
--- a/src/libcharon/plugins/load_tester/load_tester_plugin.c
+++ b/src/libcharon/plugins/load_tester/load_tester_plugin.c
@@ -269,12 +269,6 @@ plugin_t *load_tester_plugin_create()
return NULL;
}
- if (!lib->caps->check(lib->caps, CAP_CHOWN))
- { /* required to chown(2) control socket */
- DBG1(DBG_CFG, "load-tester plugin requires CAP_CHOWN capability");
- return NULL;
- }
-
INIT(this,
.public = {
.plugin = {
@@ -304,4 +298,3 @@ plugin_t *load_tester_plugin_create()
}
return &this->public.plugin;
}
-