[Pkg-utopia-maintainers] Bug#562811: network-manager: if-down.d should be dispatched before interface goes down (phase is "pre-down")
Mark Hedges
hedges at scriptdolphin.com
Mon Dec 28 01:35:25 UTC 2009
Package: network-manager
Version: 0.7.2-2
Severity: important
https://bugzilla.gnome.org/show_bug.cgi?id=605579
nm_device_state_changed() in src/nm-device.c waits until the interface goes
down to call nm_utils_call_dispatcher("down",...).
As a result, scripts in /etc/network/if-down.d do not have access to the
network when they run. (Try putting a script in the if-down.d directory that
runs "logger 'NM DEBUG' `ifconfig $IFACE`" and you will see in the syslog that
the interface is down.)
This is incorrect, because it does not conform to the behavior of ifupdown, and
because many packages install scripts in if-down.d that expect the network to
be available. (For instance, I might want to install a script that sends my
log-off time to a remote server, ships out logs of what I've been doing, etc.)
I tried changing nm-device.c to put the "down" dispatcher call just after
caching the activation request, but that did not help - the interface is still
down when the scripts run.
if-post-down.d is supposed to be for running the "post-down" phase.
Tons of other people and packages have depended on the consistent behavior of
standardized pre-up, post-up, pre-down and post-down PHASE values. It is not
fair to the larger community for RedHat engineers to change this to disrupt the
behavior of other flavors of Linux. (if-pre-up.d and if-post-down.d is bug
number 600167 at https://bugzilla.gnome.org/show_bug.cgi?id=600167)
Thanks. --mark--
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-maggie+9 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages network-manager depends on:
ii adduser 3.111 add and remove users and groups
ii dbus 1.2.16-2 simple interprocess messaging syst
ii dhcp3-client 3.1.3-1 DHCP client
ii hal 0.5.14-1 Hardware Abstraction Layer
ii ifupdown 0.6.9 high level tools to configure netw
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii libdbus-1-3 1.2.16-2 simple interprocess messaging syst
ii libdbus-glib-1-2 0.82-2 simple interprocess messaging syst
ii libgcrypt11 1.4.4-6 LGPL Crypto library - runtime libr
ii libglib2.0-0 2.22.3-1 The GLib library of C routines
ii libgnutls26 2.8.5-2 the GNU TLS library - runtime libr
ii libhal1 0.5.14-1 Hardware Abstraction Layer - share
ii libnl1 1.1-5 library for dealing with netlink s
ii libnm-glib0 0.7.2-2 network management framework (GLib
ii libnm-util1 0.7.2-2 network management framework (shar
ii libpolkit-dbus2 0.9-4 library for accessing PolicyKit vi
ii libpolkit2 0.9-4 library for accessing PolicyKit
ii libudev0 149-1 libudev shared library
ii libuuid1 2.16.2-0 Universally Unique ID library
ii lsb-base 3.2-23 Linux Standard Base 3.2 init scrip
ii wpasupplicant 0.6.9-3 client support for WPA and WPA2 (I
Versions of packages network-manager recommends:
ii dnsmasq-base 2.51-1 A small caching DNS proxy and DHCP
ii iptables 1.4.5-1 administration tools for packet fi
ii network-manager-gnome 0.7.2-1 network management framework (GNOM
ii policykit 0.9-4 framework for managing administrat
ii ppp 2.4.4rel-10.1 Point-to-Point Protocol (PPP) - da
Versions of packages network-manager suggests:
ii avahi-autoipd 0.6.25-2 Avahi IPv4LL network address confi
-- no debconf information
More information about the Pkg-utopia-maintainers
mailing list