diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-05-21 21:26:58 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-05-21 21:31:05 -0400 |
commit | 8af9e71ccc69d00ac171f1d7a86da4cfff42bd2e (patch) | |
tree | 9a5d75ec655190f8c194ba7524506b3454162f1f /src/plugin.c | |
parent | fb87ae860481cd2ab3da9451faaaf7987ae8a645 (diff) | |
download | lighttpd-git-8af9e71ccc69d00ac171f1d7a86da4cfff42bd2e.tar.gz |
[core] allow earlier plugin init for SSL/TLS
If lighttpd is started privileged, then SSL/TLS modules need to be
initialized prior to chroot (optional) and prior to dropping privileges
in order to be able to read sensitive files such as private certificates
(thx m4t)
Diffstat (limited to 'src/plugin.c')
-rw-r--r-- | src/plugin.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c index 0a035d2f..c97af3bd 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -497,6 +497,10 @@ handler_t plugins_call_init(server *srv) { } else { p->data = NULL; } + + if (p->priv_defaults && HANDLER_ERROR==p->priv_defaults(srv, p->data)) { + return HANDLER_ERROR; + } } return HANDLER_GO_ON; |