X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=contrib%2Fsystemd.collectd.service;h=0e758e40ef85a9fb6aba1c921da5a0f27c89a41d;hb=48aea1cec5828800671bce25c70548d241a05fd6;hp=065913355ba5aa11b7079aebfeaafad9d3324185;hpb=ace895b049403752623dcbca2496c20cf64e495e;p=collectd.git diff --git a/contrib/systemd.collectd.service b/contrib/systemd.collectd.service index 06591335..0e758e40 100644 --- a/contrib/systemd.collectd.service +++ b/contrib/systemd.collectd.service @@ -8,6 +8,16 @@ ExecStart=/usr/sbin/collectd EnvironmentFile=-/etc/sysconfig/collectd EnvironmentFile=-/etc/default/collectd ProtectSystem=full +ProtectHome=true + +# drop all capabilities: +CapabilityBoundingSet= +# use this instead if you use the dns or ping plugin +#CapabilityBoundingSet=CAP_NET_RAW +# turn this on if you use the iptables next to the dns or ping plugin +#CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN + +NoNewPrivileges=true # Tell systemd it will receive a notification from collectd over it's control # socket once the daemon is ready. See systemd.service(5) for more details.