summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/netdata-core-no-sse.lintian-overrides3
-rw-r--r--debian/netdata-core.lintian-overrides3
-rwxr-xr-xdebian/rules2
3 files changed, 6 insertions, 2 deletions
diff --git a/debian/netdata-core-no-sse.lintian-overrides b/debian/netdata-core-no-sse.lintian-overrides
index fab35df60..c5b056ebc 100644
--- a/debian/netdata-core-no-sse.lintian-overrides
+++ b/debian/netdata-core-no-sse.lintian-overrides
@@ -5,5 +5,6 @@ netdata-core-no-sse: non-standard-executable-perm usr/lib/netdata/plugins.d/apps
# user created during install
netdata-core-no-sse: maintainer-script-should-not-use-recursive-chown-or-chmod
-# freeipmi plugin
+# plugins that require root access
netdata-core-no-sse: setuid-binary usr/lib/netdata/plugins.d/freeipmi.plugin 4754 root/root
+netdata-core-no-sse: setuid-binary usr/lib/netdata/plugins.d/perf.plugin 4754 root/root
diff --git a/debian/netdata-core.lintian-overrides b/debian/netdata-core.lintian-overrides
index 3467fab3d..ed3c4db1e 100644
--- a/debian/netdata-core.lintian-overrides
+++ b/debian/netdata-core.lintian-overrides
@@ -5,5 +5,6 @@ netdata-core: non-standard-executable-perm usr/lib/netdata/plugins.d/apps.plugin
# user created during install
netdata-core: maintainer-script-should-not-use-recursive-chown-or-chmod
-# freeipmi plugin
+# plugins that require root access
netdata-core: setuid-binary usr/lib/netdata/plugins.d/freeipmi.plugin 4754 root/root
+netdata-core: setuid-binary usr/lib/netdata/plugins.d/perf.plugin 4754 root/root
diff --git a/debian/rules b/debian/rules
index 3be0bbcf9..07538409c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -164,9 +164,11 @@ override_dh_fixperms-arch:
# given extra capabilities in the postinst script.
chmod 0754 $(TOP)-core/usr/lib/netdata/plugins.d/apps.plugin
chmod 4754 $(TOP)-core/usr/lib/netdata/plugins.d/freeipmi.plugin
+ chmod 4754 $(TOP)-core/usr/lib/netdata/plugins.d/perf.plugin
ifeq (netdata-core-no-sse,$(findstring netdata-core-no-sse,$(PACKAGES)))
chmod 0754 $(TOP)-core-no-sse/usr/lib/netdata/plugins.d/apps.plugin
chmod 4754 $(TOP)-core-no-sse/usr/lib/netdata/plugins.d/freeipmi.plugin
+ chmod 4754 $(TOP)-core-no-sse/usr/lib/netdata/plugins.d/perf.plugin
endif
override_dh_fixperms-indep: