Package: uif
Version: 1.0.5-4.1
Severity: normal
Tags: patch

The uif script regards interface aliases as invalid names for network
interfaces. However, Linux iptables does not have a problem using aliases,
therefore this is a bug. Two regular expressions need to be modified to
correct this.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.4 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages uif depends on:
ii  bsdutils                 1:2.13.1.1-1    Basic utilities from 4.4BSD-Lite
ii  debconf [debconf-2.0]    1.5.23          Debian configuration management sy
ii  iptables                 1.4.1.1-2       administration tools for packet fi
ii  libnet-ldap-perl         1:0.36-1        A Client interface to LDAP servers
ii  libnetaddr-ip-perl       4.007+dfsg-2+b1 Manipulate IP Addresses easily
ii  perl                     5.10.0-13       Larry Wall's Practical Extraction 

uif recommends no packages.

Versions of packages uif suggests:
pn  fwlogwatch                    <none>     (no description available)

-- debconf information:
* uif/conf_method: don't touch
  uif/trusted:
  uif/traceroute: true
  uif/workstation:
  uif/pings: true
  uif/error:
--- uif.old     2007-04-30 15:25:08.000000000 +1000
+++ uif         2008-08-27 16:09:03.000000000 +1000
@@ -123,8 +123,8 @@
                                        die "invalid line in section network: 
$line\n";
                                }
                        } elsif ($state eq 'INTERFACE') {
-                               if ($line =~ /^\s*([a-zA-Z0-9_-]+)\s+(.*)$/) {
-                                       $$Interfaces{$1}.="$2 ";
+                               if ($line =~ 
/^\s*([a-zA-Z0-9_-]+(:\d+)?)\s+(.*)$/) {
+                                       $$Interfaces{$1}.="$3 ";
                                } else {
                                        die "invalid line in section interface: 
$line\n";
                                }
@@ -409,7 +409,7 @@
                $$Interfaces{$key} = resolveHashentries($$Interfaces{$key}, 
$Interfaces);
        }
        foreach $key (keys (%$Interfaces)) {
-               if (!($$Interfaces{$key} =~ /^[a-zA-Z0-9+ ]+$/)) {
+               if (!($$Interfaces{$key} =~ /^[a-zA-Z0-9+ ]+(:\d+)?$/)) {
                        die "invalid character in interface definition: 
$$Interfaces{$key}\n";
                }
        }

Reply via email to