[Bug 1545302] Re: wpa-roam broken by fix for ifupdown #1337873

Paul Donohue ubuntu at PaulSD.com
Tue Feb 16 14:19:47 UTC 2016


See bug #1545363 - my patch for that bug happens to remove the use of
the ifstate file.  However, fixing that does not solve the "ifup:
recursion detected ..." issue.  The environment variable still needs to
be removed to fix the recursion issue.

After thinking about it some more, I think it may make more sense to
unset the variable in /etc/wpa_supplicant/ifupdown.sh rather than
/etc/wpa_supplicant/functions.sh (so the variable is removed from the
wpa_supplicant daemon's environment, rather than being removed each time
wpa_action calls ifup or ifdown).  This new attached patch file does
this.

Let me know when you have something for me to test.  Thanks!

** Attachment added: "patch2"
   https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1545302/+attachment/4572849/+files/patch2

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1545302

Title:
  wpa-roam broken by fix for ifupdown #1337873

Status in wpa package in Ubuntu:
  Confirmed

Bug description:
  The following versions of ifupdown introduced a recursion check using "IFUPDOWN_<interface>" environment variables along with a new locking mechanism for ifup (see #1337873):
  0.7.47.2ubuntu4.2 (in Trusty)
  0.7.54ubuntu1.1 (in Wily)
  0.7.54ubuntu2 (in Xenial)

  This recursion check breaks the wpa-roam feature of wpasupplicant,
  preventing it from loading the logical interface specified by id_str
  after associating with an AP.  Specifically, after upgrading to one of
  the above ifupdown versions, the '/sbin/ifup -v --force
  "$WPA_IFACE=$WPA_LOGICAL_IFACE"' command run by wpa_action in
  functions.sh fails with an "ifup: recursion detected for parent
  interface wlan0 in post-up phase" error.

  To fix the issue, functions.sh needs to run `unset
  "IFDOWN_$WPA_IFACE"` before calling /sbin/ifup to prevent ifup from
  detecting the recursion.  The attached patch implements this change.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wpa/+bug/1545302/+subscriptions



More information about the Ubuntu-sponsors mailing list