Commit Graph

7740 Commits

Author SHA1 Message Date
Dan Williams
8af03101b5 core: fix up easytether patch to actually compile 2011-04-14 14:42:40 -05:00
Torsten Spindler
167936f47d core: enable Easytether Android USB interfaces
These interfaces are a proprietary USB-ethernet-style virtual interface
that of course does not have proper driver links.  Given that it's so
easy to support, just do it.
2011-04-14 13:35:57 -05:00
Dan Williams
df511f74f7 build: use -Wundef and fix up cases where stuff wasn't defined (bgo #647157) 2011-04-14 13:19:12 -05:00
Jiří Klimeš
0acd1d322b ifcfg-rh: fix some memory leaks in tests (test-ifcfg-rh.c) 2011-04-14 16:57:34 +02:00
Jiří Klimeš
0937b985da ifcfg-rh: fix some memory leaks in ifcfg-rh plugin 2011-04-14 16:56:20 +02:00
Dan Williams
e116ee9d8a core: don't keep re-reading the ConsoleKit database
Due to a stupid error the cache wasn't actually getting used and
way more than one SessionMonitor was getting created.
2011-04-14 09:20:17 -05:00
Jiří Klimeš
dae8ab9be9 ifcfg-rh: fix memory leaks in tests (test-ifcfg-rh-utils.c) 2011-04-14 12:00:32 +02:00
Jiří Klimeš
92b55e709a ifcfg-rh: fix read-after-free error in reader.c 2011-04-14 11:41:55 +02:00
Jiří Klimeš
b7b5599fb3 ifcfg-rh: add testcases for IPv4 manual addresses 2011-04-14 10:53:26 +02:00
Jiří Klimeš
ccd39a8cb9 ifcfg-rh: adjust handling IPADDRn, PREFIXn (NETMASKn) and GATEWAYn (rh #658907)
Now that initscripts also support IPADDRn syntax, update the implementation
to match the intitscripts' one (see rh #633984)
Basically, writer produces IPADDR0 .. IPADDR255. reader is more tolerant and
supports older configs too: IPADDR, IPADDR0, IPADDR1 could be missing, from
IPADDR2 up the indexes have to be contiguous.
2011-04-14 10:30:51 +02:00
Dan Williams
9152c304ff wwan: fix enabled state detection (bgo #647216)
Since the user state stuff got committed in 0.8.2, WWAN enable
state has been somewhat broken.  The problem is that we want two
things: (1) that the current modem enabled state is reflected
in the WwanEnabled property, and (2) that enabled state should not
affect the user's ability to enable the modem via the UI.

The code did not properly separate these two.  For all automatic
decisions and properties (ie the WwanEnabled property, setting the
initial enabled state on startup or hotplug, etc) the ModemManager
enabled state should be respected.  But the user should be able
to override that state by turn WWAN on.

This calls for a fourth enabled check that modems have, the 'daemon'
state, distinct from the hardware and software kernel rfkill states
and from the user's chosen enabled/disabled state.  Add that new
check.

The actual problem was in manager_radio_user_toggled() where after
updating the user enabled state, new_enabled still equaled
old_enabled, because the kernel rfkill state was a combination of
both the kernel rfkill state *and* the ModemManager enabled state,
so the manager_update_radio_enabled() call would never happen and
the modem would never become enabled as a result of a user request.
2011-04-13 21:58:25 -05:00
Dan Williams
080738c432 trivial: fix WWAN killswitch name
It's an acronym and should thus be capitalized.
2011-04-13 21:34:23 -05:00
Dan Williams
53ed3ab41f libnm-util: constify a variable 2011-04-13 15:52:30 -05:00
Dan Williams
832e64f8bc core: remove un-needed NMActRequest from VPN connection creation
It's not required for anything.
2011-04-13 15:37:22 -05:00
Karsten Hopp
8407a9f92c core: handle s390 CTC-type devices too (bgo #647578) (rh #641986) 2011-04-12 15:42:40 -05:00
Dan Williams
d90e6423c8 ifcfg-rh: fix up s390 CTC adapter reading and writing (bgo #647578) (rh #641986) 2011-04-12 15:38:47 -05:00
Karsten Hopp
38d3f0b181 libnm-util: fix s390 CTC nettype and whitelist ctcprot option (bgo #647578) (rh #641986) 2011-04-12 15:38:08 -05:00
Dan Williams
5af6a4baec ifcfg-rh: add testcase for S390 CTC-type connections (bgo #647578) (rh #641986) 2011-04-12 15:03:09 -05:00
Dan Williams
ed5e466311 core: use the VPN manager from priv data
Pointless to get/unref it when we already have a pointer to it
sitting around in the private data.
2011-04-12 14:13:13 -05:00
Dan Williams
3b48fdfc89 build: turn on warnings during distcheck
Make sure we catch everything before generating a tarball for release.
2011-04-11 17:10:54 -05:00
Dan Williams
c269735e9c build: remove non-existent include directory (bgo #647159) 2011-04-11 16:44:40 -05:00
Dan Williams
08aabc2bee core: aggregate ConsoleKit sesson data (bgo #647454)
Jan Schmidt noticed that things didn't work as expected with
multiple sessions of the same user, since when inserting the
new session the old one was forgotten.  Thus bad things happened
if you were local in the old session but not in the new one
since only the new one would be considered.

Instead, make the actual data stored the aggregate of all
sessions for that user.
2011-04-11 16:43:39 -05:00
Dan Williams
5cd14f05b7 Revert "core: aggregate ConsoleKit sesson data (rh #647454)"
This reverts commit 328068c7fe.

The bug tag in the commit message is wrong, it should be
bgo and not rh.
2011-04-11 16:43:01 -05:00
Dan Williams
328068c7fe core: aggregate ConsoleKit sesson data (rh #647454)
Jan Schmidt noticed that things didn't work as expected with
multiple sessions of the same user, since when inserting the
new session the old one was forgotten.  Thus bad things happened
if you were local in the old session but not in the new one
since only the new one would be considered.

Instead, make the actual data stored the aggregate of all
sessions for that user.
2011-04-11 16:35:38 -05:00
Dan Williams
c7d1bf18c4 wifi: fix connection completion when no wifi setting is sent
In NMDeviceWifi's real_complete_connection() the wifi setting
was looked up at the start of the function, but if no wifi
setting was sent by the caller, it would be NULL.  The wifi
setting would later get added by nm_ap_utils_complete_connection(),
but after calling that the new wifi setting would not be looked
up again.  Make that clearer by moving the wifi setting add code
to the wifi device's real_complete_connection() and not burying
it in some other function.  This is more like what other device
types do.
2011-04-11 11:42:12 -05:00
Dan Williams
b6e66c8ff4 core: don't call g_main_loop_quit() from the signal handler
Besides not being technically reliable (although it mostly works)
we could get into situations where systemd would kill the cgroup
which resulted in NM getting a SIGCHLD for dhclient children before
the SIGTERM quit the mainloop.  This caused NM to think that the
dhclient process died unexpectedly, and to tear down the connection
even though what NM really wanted to do was just leave everything
running so that the connection could be taken over on restart.
2011-04-08 14:36:14 -05:00
Lennart Poettering
c4d387efb8 systemd: pull in network.service and introduce NetworkManager-wait-online.service
This pulls in network.target from NetworkManager.service (and not the
other way round), as suggested and agreed on on the systemd ML:

http://lists.freedesktop.org/archives/systemd-devel/2011-March/001692.html

This also introduces an auxiliary service
NetworkManager-wait-online.service that can be used to order a unit
after the point where the network is available. When this is enabled
with "systemd enable NetworkManager-wait-online.service" the unit
network.target will be delayed until the network is up, which is
suitable for synchronizing NFS mounts and similar to it.

https://bugzilla.redhat.com/show_bug.cgi?id=692008
2011-04-06 17:33:51 -05:00
Dan Williams
1a61a0a2ca build: let distcheck autoconfigure wimax 2011-04-05 11:00:55 -05:00
Dan Williams
5e21728e59 core: suppress error messages if addresses/routes already exist 2011-04-05 10:19:08 -05:00
Dan Williams
5ca747316e ip6: remove useless include 2011-04-05 10:04:57 -05:00
Dan Williams
801beb4b4d ip6: prevent overflows in RDNSS and DNSSL timeout calculations (rh #689291) 2011-04-05 09:58:49 -05:00
Dan Williams
4045a91ab9 ip6: add some comments 2011-04-05 09:58:01 -05:00
Dan Williams
48441ea636 ip6: don't try to process invalid RA nameservers 2011-04-05 09:57:43 -05:00
Dan Williams
fdc2d5ee4f ip6: fix possible use of uninitialized memory 2011-04-05 09:54:52 -05:00
Dan Williams
27796075e7 release: bump version to 0.8.998 (0.9.0-rc1) 2011-04-04 23:28:51 -05:00
Dan Williams
839c790982 core: ignore Nokia PC-Suite ethernet devices we can't use yet 2011-04-04 16:41:55 -05:00
Sandeep Shedmake
8cefc21dd9 po: updated Marathi translation (bgo #645927) 2011-04-02 08:58:00 -05:00
Christian Kirbach
37bd0f76e6 po: updated German translation (bgo #646375) 2011-04-02 08:56:27 -05:00
Dan Williams
bc991b8ff2 libnm-util: fix introspection annotation (bgo #646335) 2011-04-02 08:53:43 -05:00
Dan Williams
04b2c297ec policy: consolidate auto-retries and invalidation
Instead of having two of these, just use the autoconnect retries as
the invalid tag.  Make sure the auto-retries tag always exists by
secretly adding +1 behind the scenes (so the data we set is never NULL).
This should make the code clearer, and will enable the next commit
for authentication failures to decrease the auto retries count.
2011-04-01 18:50:58 -05:00
Dan Williams
937359a67b supplicant: use ap_scan=0 for wired connections
Somehow this got dropped in the port to the new supplicant D-Bus
interface a few months ago.
2011-04-01 18:50:10 -05:00
Dan Williams
85a8f64f88 wifi: remove some debugging code 2011-04-01 18:01:06 -05:00
Dan Williams
e20d64f76b wimax: handle device removal when the WiMAX Network Service goes away
There's some confusion in the code about indexes; there's the SDK index
from the NS, and there's the internal device index.  Of course we've
got to use the internal device index to remove it from our list, so we
need to convert the SDK index to an internal index before we can call
iwmx_sdk_dev_rm().

Second, the:

if (device_id_list_size < devid->deviceIndex) {

check is useless because by the time we get here, the device is already
gone from the SDK's device list, so this always triggers of the NS
quits.  So just run this check when devices get added to ensure the
NS isn't lying to us.  The, if we get a device removal event, match
up the SDK index with some internal device's SDK index and remove that.
2011-04-01 17:57:09 -05:00
Dan Williams
5fd3163a46 policy: don't retry connections where secrets requests failed
If the user canceled a secrets request, or we simply can't get
secrets for the connection, invalidate it and  make sure it doesn't
get tried automatically again right after it fails.
2011-04-01 13:30:37 -05:00
Dan Williams
52d0376148 vpn: set default username from agent that provided secrets (bgo #646115)
This functionality got dropped when we killed user secrets because the
user settings service was the thing that set this.
2011-03-31 18:46:26 -05:00
Dan Williams
390a5fb840 settings: return username of agent providing secrets
Mainly for VPN connections to grab the default username from, like
0.8 did when the applet provided the username to NM for user
connections.
2011-03-31 18:39:09 -05:00
Dan Williams
fdd2727d21 libnm-glib: hook up networking enabled property writes 2011-03-31 17:38:39 -05:00
Dan Williams
0d92803ccc libnm-glib: make property set requests for wifi/wwan/wimax do something
They weren't actually poking NM, just setting internal values.
2011-03-31 17:34:13 -05:00
Dan Williams
5b0ef4c201 libnm-util: don't ever deinit crypto methods (bgo #646300)
Because we can't ever know if we're the last user of NSS or gnutls
when nm_utils_deinit() is called, just don't bother deiniting
the crypto providers.  And atexit handlers are generally frowned
upon for the exact same reason.  You never know what library linked
into your process might be also using NSS or gnutls, so basically
if these libraries suck enough to use global data and not reference
count it, just let the data leak.  If we do clean stuff up that
can lead to crashes when other libraries might try to use NSS or
gnutls after the atexit handler or nm_utils_deinit() has been run.

See also:  https://bugzilla.mozilla.org/show_bug.cgi?id=54189#c1
2011-03-31 13:29:19 -05:00
Dan Williams
d291feeb0f tests: test more combinations of wifi AP security flags for connection completion 2011-03-30 13:53:14 -05:00