Public bug reported:

Binary package hint: munin

The ip_ plugin in 1.4.5-3ubuntu2 fails to handle IPv6 addresses when
/bin/sh is being linked to dash.

Ways to reproduce, assuming the local IPv6 address being
2001:16d8:cc88:0:223:aeff:feb1:b64.

root@stilgar:~# ip6tables -I OUTPUT -s 2001:16d8:cc88:0:223:aeff:feb1:b64
root@stilgar:~# ip6tables -I INPUT -d 2001:16d8:cc88:0:223:aeff:feb1:b64
root@stilgar:~# ln -s /usr/share/munin/plugins/ip_ 
/etc/munin/plugins/ip_2001:16d8:cc88:0:223:aeff:feb1:b64
root@stilgar:~# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2011-02-05 14:34 /bin/sh -> dash
export MUNIN_LIBDIR=/usr/share/munin
root@stilgar:~# /etc/munin/plugins/ip_2001\:16d8\:cc88\:0\:223\:aeff\:feb1\:b64 
eval: 1: Syntax error: "(" unexpected
root@stilgar:~# ln -sf /bin/bash /bin/sh
root@stilgar:~# /etc/munin/plugins/ip_2001\:16d8\:cc88\:0\:223\:aeff\:feb1\:b64 
in.value 239782
out.value 102625
root@stilgar:~#

This being where the problem arise

case $IP in
    *:*) # I know this! This is IPv6!
        # This is a fun hack to make the plugin ip6 compatible.
        # Suggested in ticket #439 by "jodal".
        eval 'function iptables() {
            /sbin/ip6tables "$@"
        }'
        ;;
esac

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: munin-node 1.4.5-3ubuntu2
ProcVersionSignature: Ubuntu 2.6.38-1.28-generic 2.6.38-rc2
Uname: Linux 2.6.38-1-generic x86_64
Architecture: amd64
Date: Sat Feb  5 14:21:56 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110201.2)
PackageArchitecture: all
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, user)
 LC_MESSAGES=sv_SE.utf8
 LANG=sv_SE.UTF-8
 LANGUAGE=sv_SE:sv:en_GB:en
SourcePackage: munin

** Affects: munin
     Importance: Unknown
         Status: Unknown

** Affects: munin (Ubuntu)
     Importance: Low
         Status: Triaged


** Tags: amd64 apport-bug natty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to munin in ubuntu.
https://bugs.launchpad.net/bugs/713646

Title:
  IPv6 functionality in ip_ plugin assumse #!/bin/sh being bash

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to