Commit Graph

15047 Commits

Author SHA1 Message Date
Dan Williams
027ef78682 core: actually emit reason for device state changes
Found by 代尔欣 <daierxin@gmail.com>
2009-05-12 12:05:47 -04:00
Dan Williams
b4767a5c1f dns: fix handling of searches and domains in resolv.conf
Fix a few issues here:

- nm_utils_merge_ip4_config() didn't reset domains, which would cause domains
    to still be used even if the user elected to ignore DHCP-provided DNS
- nm_ip4_config_add_domain() and nm_ip4_config_add_search() didn't filter
    duplicates
- nm_ip4_config_reset_searches() leaked everything
- If the user had specified an appended search in the connection, that search
    would be added to the 'searches' field in resolv.conf, but any server
    returned domains in 'domain_name' would be ignored because at least one
    search existed.
2009-05-11 20:07:39 -04:00
Dan Williams
fd4bdc5c54 dbus: fix issues with root being at_console
When root is at_console, the at_console stuff overrides the user=root
section.  Since the default section will deny-by-default, explicitly
allow certain D-Bus interfaces to be usable by at_console users (including
root when root is at_console) prevents root from being denied access to
those interfaces when root is at_console.
2009-05-10 00:20:12 -04:00
Dan Williams
97fe200122 test: whitespace cleanup 2009-05-09 23:58:13 -04:00
Dan Williams
07cc26d5fc wifi: handle WEP & WPA passphrases (bgo #513820) (rh #441070)
Instead of requiring applets to hash passphrases, just do it in NM instead.
This should fix confusion where people don't understand that they are seeing
their hashed passphrase.
2009-05-09 23:09:42 -04:00
Dan Williams
eee3c4ceb2 libnm-util: validate connection uuid 2009-05-03 01:09:34 -04:00
Dan Williams
756bc70402 dhcp: (dhclient) use per-connection leasefiles and don't delete on deactivate
So that leases are actually useful...
2009-05-03 00:51:09 -04:00
Michael Biebl
8613f66f3f Update gitignore file
Ignore the m4 macros that are automatically copied to m4/.
2009-05-02 18:01:27 -04:00
Michael Biebl
ae44aa59d1 Remove NULL in Makefile.am
Be consistent and don't use NULL, it's not defined anyway.
2009-05-02 18:01:20 -04:00
Michael Biebl
dbd85915f1 Split compiler warnings into separate m4 macro file
The m4 macro is called NM_COMPILER_WARNINGS. Being in a separate file
makes it easier reusable for the other NM projects.
2009-05-02 18:01:13 -04:00
Michael Biebl
f744c39409 Use AC_GNU_SOURCE
Use AC_GNU_SOURCE macro instead of setting -D_GNU_SOURCE manually.
The macro will add the _GNU_SOURCE define to config.h for systems that
have the GNU extensions.
2009-05-02 18:01:06 -04:00
Michael Biebl
fb386ceee4 Use m4/ macro directory
Keep the relevant m4 macros in-tree.
2009-05-02 18:01:00 -04:00
Michael Biebl
afaf110d56 Update autogen.sh for configure.ac 2009-05-02 18:00:50 -04:00
Michael Biebl
ba3c83bd4b Replace obsolete AC_HELP_STRING with AS_HELP_STRING 2009-05-02 18:00:42 -04:00
Michael Biebl
7c46bbfd9e Rename configure.in to configure.ac 2009-05-02 18:00:32 -04:00
Michael Biebl
1c3c6c2a66 Remove DBUS_API_SUBJECT_TO_CHANGE
We require dbus 1.1 anyway
2009-05-02 18:00:22 -04:00
Dan Williams
7082150fb1 wifi: fix scan list culling when no APs are found in a scan
Bug found by Gustavo Sverzut Barbieri <gustavo.barbieri@canonical.com>
2009-04-30 10:24:25 -04:00
Dan Williams
8067ec9334 wifi: whitespace and other misc cleanups 2009-04-29 17:08:31 -04:00
Dan Williams
c955994b4f core: remove dead code 2009-04-29 13:21:54 -04:00
Daniel Gryniewicz
20c662e350 dhcp: use correct dhclient config file location for Gentoo (bgo #579737) 2009-04-23 10:44:08 -04:00
Dan Williams
34e33b3504 libnm-glib: fix handling of system settings service proxy's PropertiesChanged signal 2009-04-21 18:30:18 -04:00
Dan Williams
b87c5495ea core: don't shadow basename (2) 2009-04-21 18:29:44 -04:00
Dan Williams
ba5a7024bd core: use _GNU_SOURCE consistently 2009-04-21 18:29:25 -04:00
Dan Williams
641af69086 ifcfg-rh: don't shadow basename 2009-04-21 18:23:07 -04:00
Harald Hoyer
b96c60dae0 core: update resolv.conf directly if opening the tempfile fails 2009-04-17 10:06:48 -04:00
Dan Williams
42b4d04fe1 ifcfg-rh: don't check PolicyKit when on-disk ifcfg file changes (rh #495884)
The plugin called nm_exported_connection_update() which ended up checking
PolicyKit for authorization to update the connection, which of course fails
completely when it's just an inotify-triggered update.  inotify-triggered
updates don't need authorization because they require root access anyway.
2009-04-17 07:02:19 -04:00
Tambet Ingo
47527601af wifi: don't bring device up if it's rfkilled 2009-04-15 11:07:15 -04:00
Dan Williams
ba85e8915c release: bump version higher than the NETWORKMANAGER_0_7 branch 2009-04-15 07:14:26 -04:00
Dan Williams
80bb28eff2 ifcfg-rh: fix printf format of guint64 2009-04-14 18:47:46 -04:00
Dan Williams
5f76b1d480 ifcfg-rh: fix distcheck
distcheck's source dir is read-only, need to use the actual build dir
for temp stuff.
2009-04-14 18:12:07 -04:00
Dan Williams
1c683c3b57 po: add new translatables 2009-04-14 09:10:04 -04:00
Dan Williams
5c3fe78d4b ifcfg-rh: fix writing TTLS-TLS connections and add testcases
Fixes memory leak where ifcfg structure wouldn't be closed on write error too.
2009-04-14 09:09:59 -04:00
Dan Williams
583dd00fc1 ifcfg-rh: use correct initial size for storing SSID 2009-04-14 09:09:54 -04:00
Dan Williams
2c4919ae84 libnm-util: allocate correct size for uuid 2009-04-14 09:09:48 -04:00
Dan Williams
bebe3e891b ifcfg-rh: fix read/write of EAP-TLS connections
TLS uses the 'identity' which previously wasn't read.  The private key
password should also only be used for PKCS#12 files, becuase they aren't
decrypted when read into the setting.

Private keys also need to be handled differently; PKCS#12 keys are written
out unchanged (ie, still encrypted) with their corresponding private key.
DER keys are stored in the setting unencrypted, so they are re-encrypted
before being written out to disk.  But because the private key password
isn't known for DER keys, a random password must be used to re-encrypt
the key.
2009-04-14 09:09:43 -04:00
Dan Williams
f4c1b422cf ifcfg-rh: fix writing multiple WPA & WPA ciphers 2009-04-14 09:09:37 -04:00
Dan Williams
8bbe884d0c ifcfg-rh: ensure certificates & private keys are mode 0600
g_file_set_contents() doesn't allow us to specify the mode, so roll
our own version.
2009-04-14 09:09:30 -04:00
Dan Williams
b564bfb5e2 ifcfg-rh: fix reading/writing PEAP and wired 802.1x connections 2009-04-14 09:09:25 -04:00
Dan Williams
6566900310 ifcfg-rh: add testcase for WPA2-PSK 2009-04-14 09:09:19 -04:00
Dan Williams
b6700bcb63 ifcfg-rh: fix reading of WPA allowed protocols 2009-04-14 09:09:13 -04:00
Dan Williams
f3f1ee18d4 libnm-util: fix array transforms when arrays are NULL 2009-04-14 09:09:07 -04:00
Dan Williams
0ee2250583 ifcfg-rh: test and fix up wifi WEP connection writing 2009-04-14 09:09:01 -04:00
Dan Williams
e3a309d694 ifcfg-rh: remove temp ifcfg file 2009-04-14 09:08:54 -04:00
Dan Williams
ecb8a0658c ifcfg-rh: don't free unused array if wifi no HWADDR 2009-04-14 09:08:49 -04:00
Dan Williams
f40d502492 ifcfg-rh: don't write LAST_CONNECT if it's 0 2009-04-14 09:08:44 -04:00
Dan Williams
5ebed3ebfa ifcfg-rh: fix wifi channel and MTU read/write 2009-04-14 09:08:38 -04:00
Dan Williams
fa72dc27e0 libnm-util: add transform for byte arrays; fix IP4 address transform for prefix 2009-04-14 09:08:33 -04:00
Dan Williams
c6fe990ba4 ifcfg-rh: fix dhcp-client-id 2009-04-14 09:08:27 -04:00
Dan Williams
13c5e660de ifcfg-rh: read multiple IP addresses, more DNS servers, write more IP4 stuff
Add a simple testcase for write too.
2009-04-14 09:08:20 -04:00
Dan Williams
44964d3b5e ifcfg-rh: initial write support for wifi & wired 2009-04-14 09:08:14 -04:00