Commit Graph

5114 Commits

Author SHA1 Message Date
Jiří Klimeš
f6f8ef2f8a dns: fix a crash due to uninitialized nis_domain (novell #655685)
Reported and tested by Raymond Wooninck. Thanks!
2010-11-24 12:51:08 +01:00
Dan Williams
4b37101ef4 core: suppress error message when user settings service is not active
Don't bother trying to initialize the user settings proxy when it
isn't even active.  Would trigger a warning to syslog if PolicyKit
permissions changed via changes to /usr/share/polkit-1/actions/.
2010-11-23 22:17:21 -06:00
Dan Williams
40bbd4e2f2 examples: fix querying active connections 2010-11-23 16:28:25 -06:00
Dan Williams
608783c5b7 core: handle device removal when properties are unreadable
By the time we get the udev device removal notification we may not
be able to read properties, since the device has already been
removed from sysfs.  That means we can't get the ifindex, so we need
to fall back to the interface name.  But we always want to prefer
the ifindex since that will never change as long as the device is
connected, unlike the interface name.
2010-11-23 13:11:44 -06:00
Jiří Klimeš
4b022ed32b core: correct TIMESTAMP type; fixes potential crash when time() is 32bit
The Crash appeared on some platforms in glib while processing variable
arguments.
2010-11-23 19:06:58 +01:00
Jiří Klimeš
5c9e82d17b man: update NetworkManager.conf man page 2010-11-23 16:46:51 +01:00
Jiří Klimeš
8c9a124e72 keyfile: allow uppercase MAC addresses in unmanaged-devices in config file (rh #654714) 2010-11-23 16:33:11 +01:00
Mikhail Efremov
92b58e56f5 dhcp: ensure that dhcp client is exited
On restart ensure that the client we're trying to kill has
actually exited even if it's not our child.
2010-11-19 16:52:55 -06:00
Mathieu Trudel-Lapierre
3951942fa1 wired: fix uninitialized variable 2010-11-19 16:17:40 -06:00
Dan Williams
3992c7db50 dhcpcd: prevent dhcpcd from messing with routing (bgo #634983)
Since NM is already handling that.
2010-11-18 16:30:00 -06:00
Dan Williams
568f5e073b release: bump version to 0.8.990
Bump master branch version way past stable branch version for
development purposes.
2010-11-16 17:57:57 -06:00
Jiří Klimeš
d32a29ec52 ifcfg-rh: quiet ifcfg-rh plugin when re-read connection is the same as in-memory one
It occurs, for example, when NM updates connection's timestamp.
2010-11-10 17:28:36 +01:00
Jiří Klimeš
0376f6b1ce keyfile: ignore temporary files (bgo #602868)
Ignore temporary files created by vim editor and temporary files created
internally by g_file_set_contents() (mkstemp()) when writing connections.
2010-11-10 16:21:25 +01:00
Dan Williams
c580444fd7 keyfile: quiet keyfile plugin when re-read connection is the same as in-memory one
It occurs, for example, when NM updates connection's timestamp.
2010-11-10 16:14:51 +01:00
Ionut Biru
57bef052ce test: install nm-online binary 2010-11-08 17:53:46 +01:00
Dan Williams
cbb0d6d116 build: create NM state directory at install time 2010-11-08 09:09:54 -06:00
Dan Williams
e8da63889b keyfile: create keyfile data directory during install
So distributions don't have to do it.
2010-11-08 09:07:08 -06:00
Dan Williams
fcf87d87ae build: one more small fix for NSS detection + pkg-config stupidity 2010-11-08 09:06:47 -06:00
Jiří Klimeš
579ec4e026 ifcfg-rh: remove unused D-Bus calls from ifcfg-rh tests 2010-11-08 11:34:26 +01:00
Ozan Çağlayan
6fd3c0d576 keyfile: remove unused D-Bus calls from test-keyfile.c 2010-11-08 11:26:51 +01:00
Dan Williams
846d92c737 build: work around pkg-config bug #29801
PKG_CHECK_MODULES() succeeds even if the module's dependencies
are not satisfied, leading to empty CFLAGS and LIBS.
2010-11-07 16:31:53 -06:00
Dan Williams
68e4d31629 build: get the right NSS cflags and libs 2010-11-07 15:02:11 -06:00
Wulf C. Krueger
3b4e9dd75e backends: add Exherbo support (bgo #634058) 2010-11-05 13:41:20 -05:00
Dan Williams
389a297571 libnm-util: silence warning 2010-11-03 14:58:22 -05:00
Dan Williams
3d8b6acaba core: revert API parts of fe493ec91e
And add a default autoconnect retries value.
2010-11-03 13:23:09 -05:00
Jiří Klimeš
fe493ec91e core: add configurable auto connection retries (bgo #628825)
Presently, when automatic connecting fails, the connection is marked
as invalid and is not retried again. This commit adds a configuration
parameter to specify how many times the connection should be re-tried.
2010-11-03 16:22:55 +01:00
Jiří Klimeš
607350294d core: update timestamp in active system connections every 5 mins (bgo #583756)
This patch updates timestamps in system connections. The update occurs on
connection activation and then periodically every 5 mins while the connection
is active. It only works for plugins having write support and for writable
connections (not read-only).
2010-11-03 16:07:15 +01:00
Jiří Klimeš
6e067a9d2b ifcfg-rh: ignore temporary files with ';[a-fA-F0-9]{8}' suffix created by rpm (rh #598203) 2010-11-02 12:15:54 +01:00
Jiří Klimeš
4501e33b85 dispatcher: don't warn about invalid connection for 'hostname' action (rh #627649) 2010-11-01 16:02:32 +01:00
Jiří Klimeš
bc76e40dec trivial: make connection activating error more precise 2010-10-26 13:46:17 +02:00
Dan Williams
8b006f331d dhcp: add support for Fedora dhclient RFC3442 routes (rh #639935)
Add support for Fedora's dhclient's built-in RFC3442 classless static
routes format.

Since the Fedora format uses the same name as the dhcpcd format, we
need to refactor a bunch of the code to ensure we can distinguish
between the types.  Do this at runtime now by consolidating the
classless static routes parsing code into the DHCP Client base class
and rework the unit tests so that we can test all variations of the
classless static route parsing code at the same time.

This also fixes a bug with the dhcpcd classless static route
gateway handling that would return the wrong gateway address.

Many thanks to Jiri Popelka from Red Hat for the initial patch
and explanations.
2010-10-21 13:34:40 -05:00
Rimas Kudelis
80b9047e1c po: udpated Lithuanian translation (bgo #632634) 2010-10-20 17:25:12 -05:00
Vladimír Machat
92aae19b67 po: updated Czech translation (bgo #632329) 2010-10-19 11:21:40 -05:00
Miloš Popović
d030a52845 po: updated Serbian Latin translation (bgo #632454) 2010-10-19 11:18:54 -05:00
Милош Поповић
98d759e417 po: updated Serbian translation (bgo #632454) 2010-10-19 11:17:51 -05:00
Dan Williams
b368b8fea3 Merge remote branch 'origin/sup-rework' 2010-10-18 18:40:42 -05:00
Dan Williams
8310593ce4 core: ignore authorization for sleep/wake requests (but restrict to root) (rh #638640)
Everyone uses pm-utils still for sleep/wake support, and that's
traditionally how NM was put to sleep and woken up.  But pm-utils
uses dbus-send without --print-reply so dbus-send quits immediately
after sending the message.  That doesn't give NM enough time to
get the senders UID and thus validate the request, so the request
gets denied, and sometimes NM stays asleep after the machine is
woken up.

Instead, don't get the sender's UID and try to authorize it, but
just let the request go through.  Rely on D-Bus permissions to
make sure that only root can call sleep/wake methods.
2010-10-15 10:33:34 -05:00
Jiří Klimeš
9f2b48ef08 libnm-glib: call D-Bus with a timeout when Set()ting properties
The caller needs to be authenticated, so wait a bit to be sure
it didn't quit too quickly.
2010-10-15 09:41:34 +02:00
Dan Williams
f532f41c02 supplicant: ratelimit supplicant activation
If the supplicant dies a number of times within a short period of
time, make it go sit in the corner for a bit instead of continuously
trying to start it and have it die again.

Instead of just exposing a "running" value, instead make a meta
"available" value that's a combination of whether the supplicant
is actually running plus whether we want to talk to it right now
or not.
2010-10-12 14:18:42 -05:00
Dan Williams
39e111e5eb supplicant: ignore unknown wpa_supplicant states
Don't treat them as DISCONNECTED.
2010-10-11 20:35:54 -05:00
Dan Williams
48e37de3a4 supplicant: prevent a race condition due to D-Bus activation
interface_add() could get called from two places: by the wifi/eth
device class when activating (which if the supplicant isn't yet
running will D-Bus activate it) and from the NameOwnerChanged
handler for the wpa_supplicant dbus service smgr_running_cb().

So if the supplicant wasn't running, nm_supplicant_interface_new()
would call interface_add() to bring the supplicant to life via
activation, then go on and create priv->iface_proxy.  When the
supplicant appeared and D-Bus sent the NameOwnerChanged,
smgr_running_cb() would also call interface_add(), creating a
second priv->iface_proxy.  The first one got lost and lived after
its parent NMSupplicantInterface was killed, and could still
respond to signals over the bus.

Prevent that by adding another state, STARTING, that indicates
that we've already started talking to the supplicant.  Also be
extra paranoid about disconnecting signal handlers on the proxy.
2010-10-11 20:30:40 -05:00
Dan Williams
5858c6103e supplicant: make sure we remove the right interface
It shouldn't ever happen that two interface objects for the same
network interface are active at the same time, but make sure we
yell if it does.
2010-10-11 20:27:51 -05:00
Alex Vogt
d40c81b06a linexa: add basic Linexa support 2010-10-08 23:03:10 -05:00
Dan Williams
be97e7f104 build: include <config.h> for kill(2), isblank(3), and isascii(3)
config.h defines _GNU_SOURCE, which in turn defines the bits necessary
for kill, isblank, and isascii.  So wherever we use those, we need
to make sure config.h is included.
2010-10-08 22:46:55 -05:00
cee1
9ee77769af trivial: add missing includes 2010-10-08 16:43:16 -05:00
Dan Williams
bbf3f12d7b policy: prevent hostname duplication in /etc/hosts 2010-10-07 18:24:59 -05:00
Dan Williams
ad3cb6d832 policy: add testcases for removing stale hosts mappings (bgo #629020) (rh #630146) 2010-10-07 18:14:29 -05:00
Dan Williams
ee9ce6027b policy: preserve custom hostnames on local-mapping lines (rh #627269)
Try to preserve custom hostnames (ie, anything not a localhost* variant,
the current hostname, or the previous hostname) when rewriting the
127.0.0.1/::1 localhost mapping lines.
2010-10-07 18:08:52 -05:00
Dan Williams
4a7c77ac95 dnsmasq: actually kill stale dnsmasq process
Interpret the return value of kill(2) correctly...
2010-10-07 14:07:58 -05:00
Dan Williams
35b1ed9082 dns: actually kill stale dnsmasq process
Interpret the return value of kill(2) correctly...
2010-10-07 14:07:52 -05:00