daemon: harden transmission-daemon.service

Systemd 227 introduced the option to make a service disallow elevating
privileges.
This commit is contained in:
Jelle van der Waa 2018-12-28 22:23:33 +01:00
parent 4a4233feae
commit d1d060c3a9
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ User=transmission
Type=notify
ExecStart=/usr/bin/transmission-daemon -f --log-error
ExecReload=/bin/kill -s HUP $MAINPID
NoNewPrivileges=true
[Install]
WantedBy=multi-user.target