systemd: protect /usr when running under systemd

This commit is contained in:
Florian Schlichting 2015-08-11 19:00:21 +02:00 committed by Max Kellermann
parent 31d9aebf0b
commit 54d5d9d1cc
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ ExecStart=@prefix@/bin/mpd --no-daemon
LimitRTPRIO=50
LimitRTTIME=infinity
# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes
[Install]
WantedBy=multi-user.target
Also=mpd.socket