summaryrefslogtreecommitdiff
path: root/systemd/mpd.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'systemd/mpd.service.in')
-rw-r--r--systemd/mpd.service.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/systemd/mpd.service.in b/systemd/mpd.service.in
index c02f55e8d..250ab521c 100644
--- a/systemd/mpd.service.in
+++ b/systemd/mpd.service.in
@@ -12,6 +12,15 @@ LimitRTTIME=infinity
# disallow writing to /usr, /bin, /sbin, ...
ProtectSystem=yes
+# more paranoid security settings
+NoNewPrivileges=yes
+ProtectKernelTunables=yes
+ProtectControlGroups=yes
+ProtectKernelModules=yes
+# AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
+RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
+RestrictNamespaces=yes
+
[Install]
WantedBy=multi-user.target
Also=mpd.socket