Do user switch after SSL keys are initialized
authorWim de With <nauxuron@wimdewith.com>
Tue, 5 Jan 2016 14:04:59 +0000 (15:04 +0100)
committerWim de With <nauxuron@wimdewith.com>
Mon, 4 Apr 2016 18:45:39 +0000 (20:45 +0200)
Since SSL private keys are usually stored as readable by root only, and
if a user to switch to is specified, the switch will already have taken
place before the SSL keys are read. This means that umurmur still won't
have permission to read the keys. The fix is to switch users after
initialization.

The second problem occurs when systemd is used. If systemd is used, it's
better to let systemd handle the daemonizing of the process. However,
this means that the process will never switch users when the systemd
service is started. So this fixes that by switching the user in all
cases.


No differences found