summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPrzemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>2017-02-02 09:31:38 +0000
committerPrzemyslaw Szczerbik <przemyslawx.szczerbik@intel.com>2017-02-07 09:41:48 +0000
commitdb2a072737233fd5aa7e4c71d0c0542a846c780c (patch)
treec9b82d2d0ebe8c27b2960124d3d9f63e606c9aaa /src
parent26fcc6ce073e875cdd23c0d6310f38ac76b86b7b (diff)
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 <przemyslawx.szczerbik@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/collectd/Makefile2
1 files changed, 1 insertions, 1 deletions
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"