]> git.ipfire.org Git - thirdparty/openvpn.git/commit
systemd: Add more security feature for systemd units
authorChristian Hesse <mail@eworm.de>
Tue, 27 Dec 2016 22:18:32 +0000 (23:18 +0100)
committerDavid Sommerseth <davids@openvpn.net>
Wed, 25 Jan 2017 18:41:34 +0000 (19:41 +0100)
commitba3ccaf92d379f8a2efad80cee7dc2806088f421
treee1b5ec9ea2f8a3cc170d8d27d51347f5a393b475
parente5492222a9ae5d31d69cc9e5cb57dc094cda556e
systemd: Add more security feature for systemd units

ProtectSystem=true mounts the /usr and /boot directories read-only.

ProtectHome=true makes the directories /home, /root and /run/user
inaccessible and empty for the process.

See systemd.exec(5) [0] for details.

v2: Replace ProtectSystem=strict with ProtectSystem=true. Some
    configurations may want to write to /etc or the like.

[0] https://www.freedesktop.org/software/systemd/man/systemd.exec.html

Signed-off-by: Christian Hesse <mail@eworm.de>
Acked-by: David Sommerseth <davids@openvpn.net>
Message-Id: <20161227221832.610-1-list@eworm.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13743.html
Signed-off-by: David Sommerseth <davids@openvpn.net>
(cherry picked from commit 76096c605fcac4815674b6ae76ac1f31f03a8186)
distro/systemd/openvpn-client@.service.in
distro/systemd/openvpn-server@.service.in