Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow control socket, PID and log file for Tinc 1.1 in systemd unit
In order to isolate the unit as much as possible, but not lose the functionality to write files, the files are now written to extra directories. Due to the security restrictions, Tinc has lost the ability to write to the `/var/log` and `/var/run` directories. One possibility would be to allow this explicitly, but then Tinc could also access files from other programs. Therefore, an extra directory `/var/log/tinc/` and `/var/run/tinc` is created for Tinc, into which Tinc can then write. The automatic creation of the directories is achieved with the directives `RuntimeDirectory` and `LogsDirectory`. Allowing access to them via `ReadWritePaths`. To create platform compatibility, placeholders such as `%L` for the log directory, `%t` for the runstate directory and `%E` for the configuration file directory are used instead of the absolute directory names. Signed-off-by: Marek Küthe <[email protected]>
- Loading branch information