Bug 846081
| Summary: | Saving in system-config-network-gui can stop suspend from working (EXPLOITABLE). | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Mitch Davis <mjd+redhat> |
| Component: | system-config-network | Assignee: | Harald Hoyer <harald> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 16 | CC: | cdemills, harald, jpopelka, nstrug |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-09-03 22:53:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Mitch Davis
2012-08-06 18:57:42 UTC
(In reply to comment #0) > I spoke to the NetworkManager people, and they tell me that nm doesn't write > a DEVICE= line, that something else must have done it. Then the easiest would be to not write the DEVICE= line with system-config-network as well. /usr/share/system-config-network/netconfpkg/NCDevice.py @@ -555,6 +555,9 @@ class Device(Device_base): if conf.has_key('RESOLV_MODS'): del conf['RESOLV_MODS'] + if conf.has_key('DEVICE'): + del conf['DEVICE'] + conf.write() system-config-network-1.6.4-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/system-config-network-1.6.4-1.fc17 system-config-network-1.6.4-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/system-config-network-1.6.4-1.fc16 Hello guys, Thanks for your attention to this bug. I think it's not just DEVICE, but the NAME (and possibly ESSID) field as well. I had to hand-escape NAME in order to get suspend working again. Package system-config-network-1.6.4-1.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing system-config-network-1.6.4-1.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-11561/system-config-network-1.6.4-1.fc17 then log in and leave karma (feedback). I've tried the new RPMs, writing out the ifcfg files now seems ok, even if there's a single quote in the access point name. Thanks! After more testing, I think it is still broken.
[root@xiaomao mjd]# rpm -q system-config-network
system-config-network-1.6.4-1.fc16.noarch
[root@xiaomao mjd]# pm-suspend
[root@xiaomao mjd]#
Looking in /var/log/pm-suspend:
Running hook /usr/lib64/pm-utils/sleep.d/56dhclient suspend suspend:
./ifcfg-Auto_McDonald's_FREE_WiFi: line 1: unexpected EOF while looking for matching `''
./ifcfg-Auto_McDonald's_FREE_WiFi: line 15: syntax error: unexpected end of file
[root@xiaomao mjd]# cat -n "/etc/sysconfig/network-scripts/ifcfg-Auto_McDonald's_FREE_WiFi"
1 ESSID='McDonald's FREE WiFi'
2 MODE=Managed
3 TYPE=Wireless
4 BOOTPROTO=dhcp
5 DEFROUTE=yes
6 PEERDNS=yes
7 PEERROUTES=yes
8 IPV4_FAILURE_FATAL=yes
9 NAME="Auto McDonalds FREE WiFi"
10 UUID=9230369f-2073-4e61-8a6f-c73f363bfb2b
11 ONBOOT=yes
12 USERS=mjd
13 IPV6INIT=no
14 USERCTL=no
[root@xiaomao mjd]#
Very obviously, ESSID='McDonald's FREE WiFi' is wrong, and needs fixing.
Can you have another look at it please?
*** Bug 802711 has been marked as a duplicate of this bug. *** This bug is NOT FIXED yet. Just saying, so as no-one assumed that it's been fixed and closes it. Can you test this scratch build ? http://koji.fedoraproject.org/koji/taskinfo?taskID=4395239 It contains this change: http://git.fedorahosted.org/cgit/system-config-network.git/commit/?id=ff0d27f08890f3ae3a8705f003c67f7caeb2d90a system-config-network-1.6.5-1 was pushed to the Fedora 16 + 17 testing repository Update with: # su -c 'yum update --enablerepo=updates-testing system-config-network*' system-config-network-1.6.5-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. I filled bug report 848089, which is quite similar. Here's the /etc/sysconfig/network-scripts/ifcfg-McDonald\'s_France: HWADDR=9C:B7:0D:FE:0F:62 ESSID="McDonald\'s France" MODE=Managed TYPE=Wireless BOOTPROTO=dhcp DEFROUTE=yes PEERDNS=yes PEERROUTES=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_PEERDNS=yes IPV6_PEERROUTES=yes IPV6_FAILURE_FATAL=no IPV6_PRIVACY=rfc3041 NAME="McDonald\'s France" UUID=363b88bf-15ed-4d54-9ede-8d174032cfac ONBOOT=yes Regards Pascal system-config-network-1.6.5-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |