openv / vcontrold

:fire: vcontrold Daemon for control and logging of Viessmann® type heating devices
https://github.com/openv/openv/wiki
GNU General Public License v3.0
101 stars 54 forks source link

Dropping privileges when run as root #21

Closed speters closed 6 years ago

speters commented 6 years ago

https://github.com/openv/vcontrold/issues/20 made me think of security. Dropping root privileges might be a first measure. Pid file deliberately does not get chowned.

speters commented 6 years ago

pid file location is now configurable. If not set, no pid file is written. pidfile, username, groupname are also configurable in the config file.