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.
This commit is contained in:
Martin Willi
2013-07-18 16:00:31 +02:00
parent 1897dd730f
commit b4b3959b22
7 changed files with 7 additions and 39 deletions
@@ -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;
}