NM ignores "system"-level connections if files are world-readable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: network-manager
Trying to create a system-level connection for my wep-authenticated wireless has never worked correctly. The connection only comes up after login, not before as I would expect.
In my latest test with jaunty, I've created my system profile by:
right click nm-applet -> Edit Connections -> Wireless -> Auto home-net -> Edit -> Available to all users -> Apply
This immediately causes the connection to disappear from the list of known Wireless profiles and causes /etc/NetworkMan
NM syslog entries after a restart, without nm-applet:
Jan 26 04:23:33 dario NetworkManager: <info> starting...
Jan 26 04:23:33 dario NetworkManager: <info> Found radio killswitch /org/freedeskto
Jan 26 04:23:33 dario NetworkManager: <info> Found radio killswitch /org/freedeskto
Jan 26 04:23:33 dario NetworkManager: <info> eth0: driver is 'e1000e'.
Jan 26 04:23:33 dario NetworkManager: <info> Found new Ethernet device 'eth0'.
Jan 26 04:23:33 dario NetworkManager: <info> (eth0): exported as /org/freedeskto
Jan 26 04:23:33 dario NetworkManager: <info> wlan0: driver is 'iwl3945'.
Jan 26 04:23:33 dario NetworkManager: <info> wlan0: driver supports SSID scans (scan_capa 0x01).
Jan 26 04:23:33 dario NetworkManager: <info> Found new 802.11 WiFi device 'wlan0'.
Jan 26 04:23:33 dario NetworkManager: <info> (wlan0): exported as /org/freedeskto
Jan 26 04:23:33 dario NetworkManager: <info> Trying to start the system settings daemon...
Jan 26 04:23:33 dario NetworkManager: <WARN> killswitch_
Jan 26 04:23:33 dario nm-system-settings: Loaded plugin ifupdown: (C) 2008 Canonical Ltd. To report bugs please use the NetworkManager mailing list.
Jan 26 04:23:33 dario nm-system-settings: Loaded plugin keyfile: (c) 2007 - 2008 Red Hat, Inc. To report bugs please use the NetworkManager mailing list.
Jan 26 04:23:33 dario NetworkManager: <info> (eth0): now unmanaged
Jan 26 04:23:37 dario NetworkManager: <info> (wlan0): device state change: 1 -> 2
Jan 26 04:23:37 dario NetworkManager: <info> (wlan0): bringing up device.
Jan 26 04:23:37 dario NetworkManager: <info> (wlan0): preparing device.
Jan 26 04:23:37 dario NetworkManager: <info> (wlan0): deactivating device (reason: 2).
Jan 26 04:23:37 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:23:37 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:23:37 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:23:37 dario NetworkManager: <info> (wlan0): device state change: 2 -> 3
Jan 26 04:23:37 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:23:37 dario NetworkManager: <info> (wlan0): supplicant interface state: starting -> ready
The "Unmanaged Device" above should be eth0, not relevant here.
After waiting around a minute for NM to do something on its own, I then launch nm-applet and the connection immediately starts:
Jan 26 04:24:31 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) starting connection 'Auto home-net'
Jan 26 04:24:38 dario NetworkManager: <info> (wlan0): device state change: 3 -> 4
Jan 26 04:24:38 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Jan 26 04:24:38 dario NetworkManager: <info> (wlan0): device state change: 4 -> 5
Jan 26 04:24:38 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0/wireless): access point 'Auto home-net' has security, but secrets are required.
Jan 26 04:24:38 dario NetworkManager: <info> (wlan0): device state change: 5 -> 6
Jan 26 04:24:38 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Jan 26 04:24:38 dario NetworkManager: <info> (wlan0): device state change: 6 -> 4
Jan 26 04:24:38 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Jan 26 04:24:38 dario NetworkManager: <info> (wlan0): device state change: 4 -> 5
Jan 26 04:24:38 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0/wireless): connection 'Auto home-net' has security, and secrets exist. No new secrets needed.
Jan 26 04:24:38 dario NetworkManager: <info> Config: added 'ssid' value 'home-net'
Jan 26 04:24:38 dario NetworkManager: <info> Config: added 'scan_ssid' value '1'
Jan 26 04:24:38 dario NetworkManager: <info> Config: added 'key_mgmt' value 'NONE'
Jan 26 04:24:38 dario NetworkManager: <info> Config: added 'auth_alg' value 'OPEN'
Jan 26 04:24:38 dario NetworkManager: <info> Config: added 'wep_key0' value '<omitted>'
Jan 26 04:24:38 dario NetworkManager: <info> Config: added 'wep_tx_keyidx' value '0'
Jan 26 04:24:38 dario NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Jan 26 04:24:38 dario NetworkManager: <info> Config: set interface ap_scan to 1
Jan 26 04:24:38 dario NetworkManager: <info> (wlan0): supplicant connection state: scanning -> disconnected
Jan 26 04:24:39 dario NetworkManager: <info> (wlan0): supplicant connection state: disconnected -> scanning
Jan 26 04:24:41 dario NetworkManager: <info> (wlan0): supplicant connection state: scanning -> associating
Jan 26 04:24:41 dario NetworkManager: <info> (wlan0): supplicant connection state: associating -> associated
Jan 26 04:24:41 dario NetworkManager: <info> (wlan0): supplicant connection state: associated -> completed
Jan 26 04:24:41 dario NetworkManager: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to wireless network 'home-net'.
Jan 26 04:24:41 dario NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Jan 26 04:24:41 dario NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Jan 26 04:24:41 dario NetworkManager: <info> (wlan0): device state change: 5 -> 7
Jan 26 04:24:41 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:24:41 dario NetworkManager: <info> Activation (wlan0) Beginning DHCP transaction.
Jan 26 04:24:41 dario NetworkManager: <info> dhclient started with pid 9155
Jan 26 04:24:41 dario NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Jan 26 04:24:41 dario NetworkManager: <info> DHCP: device wlan0 state changed (null) -> preinit
Jan 26 04:24:45 dario NetworkManager: <info> DHCP: device wlan0 state changed preinit -> bound
Jan 26 04:24:45 dario NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) scheduled...
Jan 26 04:24:45 dario NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) started...
Jan 26 04:24:45 dario NetworkManager: <info> address 192.168.13.59
Jan 26 04:24:45 dario NetworkManager: <info> prefix 24 (255.255.255.0)
Jan 26 04:24:45 dario NetworkManager: <info> gateway 192.168.13.1
Jan 26 04:24:45 dario NetworkManager: <info> nameserver '192.168.13.1'
Jan 26 04:24:45 dario NetworkManager: <info> nameserver '66.93.87.2'
Jan 26 04:24:45 dario NetworkManager: <info> nameserver '216.231.41.2'
Jan 26 04:24:45 dario NetworkManager: <info> domain name 'dodds.net'
Jan 26 04:24:45 dario NetworkManager: <info> domain name 'debian.org'
Jan 26 04:24:45 dario NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Jan 26 04:24:45 dario NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) complete.
Jan 26 04:24:45 dario NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
Jan 26 04:24:46 dario NetworkManager: <info> (wlan0): device state change: 7 -> 8
Jan 26 04:24:46 dario NetworkManager: <info> Unmanaged Device found; state CONNECTED forced. (see http://
Jan 26 04:24:46 dario NetworkManager: <info> Policy set 'Auto home-net' (wlan0) as default for routing and DNS.
Jan 26 04:24:46 dario NetworkManager: <info> Activation (wlan0) successful, device activated.
Jan 26 04:24:46 dario NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
summary: |
- "system"-level connection doesn't start up until nm-applet is launched + NM ignores "system"-level connections if files are world-readable |
Changed in network-manager (Ubuntu): | |
assignee: | Alexander Sack (asac) → nobody |
milestone: | ubuntu-9.04 → none |
Here is the profile that was added to /etc/NetworkMan ager/system- connections, with the WEP key elided.