diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-05 15:11:44 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-05 15:11:44 +0200 |
commit | ddc02ba7a6cc92d07cf073395b2d41347a8d35fb (patch) | |
tree | 167664302cbc7b67e4fe2f7bb02740f9139fc623 /server.cpp | |
parent | e234229ae80da0fa9967b797f7b5f4f381cba4b4 (diff) |
Drop privileges
Diffstat (limited to 'server.cpp')
-rw-r--r-- | server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -13,6 +13,7 @@ #include "http.h" #include "https.h" +#include "privileges.h" namespace beast = boost::beast; // from <boost/beast.hpp> namespace http = beast::http; // from <boost/beast/http.hpp> @@ -46,6 +47,9 @@ int server(Config& config) servers.back()->start(); } + // set UID, GID + drop_privileges(config); + // Run the I/O service on the requested number of threads std::vector<std::thread> v; v.reserve(threads - 1); |