NetworkManager/src
Beniamino Galvani b749f7d31b manager: fix state transition on resuming from sleep
When going to sleep, we unmanage devices setting the unmanaged flags
immediately but delaying the state transition (because we do it from
another state transition). The signal handler can be executed after
the wake and, especially, after we have already re-managed the device,
making the device unmanaged again.

Detect such situation and force the state to UNMANAGED (which will
also clear any pending state change), so that later we manage the
device again and it will try to activate any available connection.

Fixes: 81ea812362

https://bugzilla.redhat.com/show_bug.cgi?id=1382526
(cherry picked from commit 5f1e36e026)
2016-11-29 22:48:18 +01:00
..
devices wwan/ppp: send explicit port speed to pppd when port speed is zero (rh #1281731) 2016-10-07 14:55:02 -05:00
dhcp-manager dhcp: let dhcp clients hold a reference to NMDhcpListener 2016-07-01 15:04:33 +02:00
dns-manager dns: log DNS servers at TRACE level 2016-06-28 16:45:53 +02:00
dnsmasq-manager core: introduce nm_utils_dnsmasq_status_to_string() 2016-06-02 19:02:48 +02:00
platform platform: wifi: drop old wifi data when an interface is renamed 2016-07-08 13:42:30 +02:00
ppp-manager ppp: add counter to D-Bus object path for PPP manager instances 2016-11-02 13:28:15 +01:00
rdisc build: disable deprecation checks for internal compilation 2016-04-05 22:22:58 +02:00
settings ifcfg-rh: fix signature of link_changed() callback 2016-10-22 17:14:54 +02:00
supplicant-manager supplicant: fix cancellation of interface association 2016-11-12 14:29:15 +01:00
systemd merge: merge branch 'systemd' into master 2016-04-01 15:15:43 +02:00
tests dns: add reverse DNS IPv6 entries to dnsmasq 2016-06-10 11:14:38 +02:00
vpn-manager vpn: don't merge DNS properties into parent device's configuration 2016-06-28 16:45:55 +02:00
main-utils.c main: create parent directories of NMSTATEDIR with permissions 755 2016-03-21 13:31:40 +01:00
main-utils.h main: create parent directories of NMSTATEDIR with permissions 755 2016-03-21 13:31:40 +01:00
main.c config: refactor change-flags to be a cause/reason which triggered the change 2016-06-10 11:14:37 +02:00
Makefile.am dns: remove nm-dns-utils.c and nm-dns-utils.h 2016-06-10 11:14:38 +02:00
NetworkManager.ver build: hide internal symbols in NetworkManager binary 2016-03-08 17:45:50 +01:00
NetworkManagerUtils.c all: move NM_AUTH_PERMISSION_* defines to "nm-common-macros.h" header 2016-06-10 11:14:38 +02:00
NetworkManagerUtils.h utils: inject platform into nm_utils_complete_generic() 2016-03-15 12:56:58 +01:00
nm-activation-request.c act-request: queue failing the slave when master fails 2016-08-18 10:29:48 -05:00
nm-activation-request.h core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-active-connection.c all: move NM_AUTH_PERMISSION_* defines to "nm-common-macros.h" header 2016-06-10 11:14:38 +02:00
nm-active-connection.h active-connection: add parent active connection tracking 2016-03-26 11:31:18 +01:00
nm-audit-manager.c audit: use logging helpers 2016-03-04 11:55:41 +01:00
nm-audit-manager.h manager: add Reload() D-Bus command 2016-06-10 11:14:38 +02:00
nm-auth-manager.c auth: downgrade g_assert() to nm_assert() 2016-04-05 10:39:20 +02:00
nm-auth-manager.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-auth-subject.c auth: allow failures to read process start_time from /proc/$PID/stat with hidepid 2016-04-22 14:42:51 +02:00
nm-auth-subject.h all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-auth-utils.c core: fix builds without polkit support 2016-08-17 11:50:01 +02:00
nm-auth-utils.h all: move NM_AUTH_PERMISSION_* defines to "nm-common-macros.h" header 2016-06-10 11:14:38 +02:00
nm-bus-manager.c bus-manager: avoid leaking responses for sync bus calls 2016-03-04 19:08:25 +01:00
nm-bus-manager.h all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-config-data.c config: refactor change-flags to be a cause/reason which triggered the change 2016-06-10 11:14:37 +02:00
nm-config-data.h config: cleanup includes 2016-06-10 11:14:38 +02:00
nm-config.c config: cleanup includes 2016-06-10 11:14:38 +02:00
nm-config.h config: cleanup includes 2016-06-10 11:14:38 +02:00
nm-connection-provider.c settings: drop signal slots from NMSettings 2016-05-24 15:03:13 +02:00
nm-connection-provider.h settings: drop signal slots from NMSettings 2016-05-24 15:03:13 +02:00
nm-connectivity.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-connectivity.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-core-utils.c dns: add reverse DNS IPv6 entries to dnsmasq 2016-06-10 11:14:38 +02:00
nm-core-utils.h dns: add reverse DNS IPv6 entries to dnsmasq 2016-06-10 11:14:38 +02:00
nm-dcb.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dcb.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-default-route-manager.c vpn,dns: for interface-less VPN connections get the ip_iface from the parent device 2016-06-10 11:14:37 +02:00
nm-default-route-manager.h default-route-manager: make NMDefaultRouteManager namespace aware 2016-03-15 12:56:58 +01:00
nm-dhcp4-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dhcp4-config.h core: port NMDhcp4Config/NMDhcp6Config to GVariant 2015-07-24 13:25:47 -04:00
nm-dhcp6-config.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-dhcp6-config.h core: port NMDhcp4Config/NMDhcp6Config to GVariant 2015-07-24 13:25:47 -04:00
nm-dispatcher.c dispatcher: use logging helpers 2016-03-04 11:48:04 +01:00
nm-dispatcher.h core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-exported-object.c exported-object: use _NMLOG2() macro for logging property-changed signal 2016-09-02 20:35:46 +02:00
nm-exported-object.h exported-object: refactor list of interfaces from GSList to an array 2016-04-01 08:58:18 +02:00
nm-firewall-manager.c core: use defines for signal names in NMDnsManager and NMFirewallManager 2016-04-04 16:48:10 +02:00
nm-firewall-manager.h core: use defines for signal names in NMDnsManager and NMFirewallManager 2016-04-04 16:48:10 +02:00
nm-iface-helper.c dbus: fix emitting D-Bus NetworkManager's old-style PropertiesChange signal 2016-09-02 20:35:46 +02:00
nm-ip4-config.c core: don't include dns-priority in IP configuration hash 2016-06-10 11:14:37 +02:00
nm-ip4-config.h core: add DNS priority to NMIP4Config 2016-06-10 11:14:36 +02:00
nm-ip6-config.c core: don't include dns-priority in IP configuration hash 2016-06-10 11:14:37 +02:00
nm-ip6-config.h core: add DNS priority to NMIP6Config 2016-06-10 11:14:36 +02:00
nm-logging.c logging: add new logging domain "SYSTEMD" for internal systemd logging 2016-03-17 15:00:48 +01:00
nm-logging.h logging: add new logging domain "SYSTEMD" for internal systemd logging 2016-03-17 15:00:48 +01:00
nm-manager.c manager: fix state transition on resuming from sleep 2016-11-29 22:48:18 +01:00
nm-manager.h manager: use defines for signal names 2016-04-04 16:45:48 +02:00
nm-multi-index.c libnm,core: fix syntax of 'transfer' annotation 2016-02-24 17:23:01 +01:00
nm-multi-index.h core: optimize NMMultiIndex by special caseing ids with one value only 2015-12-17 18:42:54 +01:00
nm-policy.c vpn,dns: for interface-less VPN connections get the ip_iface from the parent device 2016-06-10 11:14:37 +02:00
nm-policy.h policy: embed pointer to private data into NMPolicy 2016-04-04 15:47:22 +02:00
nm-rfkill-manager.c all: cleanup includes and let "nm-default.h" include "config.h" 2016-02-19 17:53:25 +01:00
nm-rfkill-manager.h core: skip generating gtype for rfkill enums 2015-08-19 13:49:33 +02:00
nm-route-manager.c platform: change @plen field of NMPlatformIPxRoute to type guint8 2016-04-12 11:14:01 +02:00
nm-route-manager.h route-manager: make NMRouteManager namespace aware 2016-03-15 12:56:58 +01:00
nm-session-monitor.c session-monitor: fix parsing of ConsoleKit database 2016-10-13 10:01:14 +02:00
nm-session-monitor.h session-monitor: explicitly use singleton instance 2015-08-13 10:06:42 +02:00
nm-sleep-monitor.c sleep-monitor: add functions for delaying the suspension 2016-05-24 15:18:29 +02:00
nm-sleep-monitor.h sleep-monitor: add functions for delaying the suspension 2016-05-24 15:18:29 +02:00
nm-types.h rdisc: make NMRDisc namespace aware 2016-03-15 12:56:58 +01:00
org.freedesktop.NetworkManager.conf dns: use DBus to make dnsmasq nameserver changes 2016-04-22 13:39:23 +02:00