From db2a072737233fd5aa7e4c71d0c0542a846c780c Mon Sep 17 00:00:00 2001 From: Przemyslaw Szczerbik Date: Thu, 2 Feb 2017 09:31:38 +0000 Subject: src: add CAP_SYS_RAWIO capability to collectd.service Intel RDT plugin is using model-specific registers (MSRs), which require additional CAP_SYS_RAWIO capability. Change-Id: Id58813515e0ef1ea11cd86165a05c84d48681b16 Signed-off-by: Przemyslaw Szczerbik --- src/collectd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/collectd/Makefile b/src/collectd/Makefile index 6fdd4638..87508172 100644 --- a/src/collectd/Makefile +++ b/src/collectd/Makefile @@ -67,7 +67,7 @@ force_install: $(AT)mv /etc/systemd/system/systemd.collectd.service /etc/systemd/system/collectd.service $(AT)chmod +x /etc/systemd/system/collectd.service $(AT)sed -i -e 's/ExecStart=\/usr\/sbin\/collectd/ExecStart=\/opt\/collectd\/sbin\/collectd/g' /etc/systemd/system/collectd.service - $(AT)sed -i -e 's/CapabilityBoundingSet=/CapabilityBoundingSet=CAP_SETUID CAP_SETGID/g' /etc/systemd/system/collectd.service + $(AT)sed -i -e 's/CapabilityBoundingSet=/CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SYS_RAWIO/g' /etc/systemd/system/collectd.service $(AT)systemctl daemon-reload $(AT)sudo ./include_config.sh @echo "Make install done" -- cgit 1.2.3-korg