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 21ef656e24
commit 5d13c13821
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ ControlGroup=cpu:/mpd
# assign a real-time budget
ControlGroupAttribute=cpu.rt_runtime_us 500000
# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes
[Install]
WantedBy=multi-user.target
Also=mpd.socket