summaryrefslogtreecommitdiff
path: root/sysutils/munin-common/files/patch-node_sbin_munin-node
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/munin-common/files/patch-node_sbin_munin-node')
-rw-r--r--sysutils/munin-common/files/patch-node_sbin_munin-node13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysutils/munin-common/files/patch-node_sbin_munin-node b/sysutils/munin-common/files/patch-node_sbin_munin-node
new file mode 100644
index 000000000000..b0acdec0560a
--- /dev/null
+++ b/sysutils/munin-common/files/patch-node_sbin_munin-node
@@ -0,0 +1,13 @@
+--- node/sbin/munin-node.orig 2014-11-24 21:46:24 UTC
++++ node/sbin/munin-node
+@@ -54,6 +54,10 @@ sub main
+ $ENV{$key} = $1;
+ }
+
++ # plugins run in taint mode because the uid is changed, so the path
++ # must not contain writable directories.
++ $ENV{PATH}='/bin:/sbin:/usr/bin:/usr/sbin:%%PREFIX%%/bin:%%PREFIX%%/sbin';
++
+ parse_args();
+
+ my $config = Munin::Node::Config->instance();