summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2019-08-14 12:23:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2019-08-14 12:23:09 +0000
commitcb8040f097bb9ff67a649ced06c9e7f066725265 (patch)
treebba4804eade6b5211b30360cd7e7e4be4d7967ce
parentMoving new arch-dep perf.plugin to core packages. (diff)
downloadnetdata-cb8040f097bb9ff67a649ced06c9e7f066725265.tar.xz
netdata-cb8040f097bb9ff67a649ced06c9e7f066725265.zip
Marking perf.plugin setuid root as it should be.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-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 fab35df6..c5b056eb 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 3467fab3..ed3c4db1 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 3be0bbcf..07538409 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: