Commit Graph

6280 Commits

Author SHA1 Message Date
Jiří Klimeš
a7b55904e6 cli: print 'Permissions' property of NMSettingConnection setting 2011-09-06 17:17:01 +02:00
Jiří Klimeš
46b01cb057 cli: use libnm-util's constants for settings types 2011-09-06 16:04:12 +02:00
Jiří Klimeš
5c2927e40f cli: add missing GSM bands for GSM setting 2011-09-06 15:56:57 +02:00
Jiří Klimeš
568820a309 cli: remove useless static function prototypes 2011-09-06 15:30:15 +02:00
Jiří Klimeš
c01db4ac51 cli: add 'nmcli con delete' command for removing configured connections 2011-09-06 15:07:58 +02:00
Jiří Klimeš
b7e853c362 cli: use nm_access_point_get_bssid() instead of nm_access_point_get_hw_address()
nm_access_point_get_hw_address() is deprecated in 0.9.
Also change 'hwaddr' parameter for 'nmcli dev wifi list' to 'bssid'. 'hwaddr'
still works but is deprecated and not documented any more.
2011-09-06 13:37:23 +02:00
Jiří Klimeš
4bb50e4380 ifnet: add testcase for incorrect config
Missing config_<name> line (containing method, i.e. dhcp, ...) should
fail with error 'Unknown config for <name>'.
2011-09-01 11:29:32 +02:00
Jiří Klimeš
9f026283c6 ifnet: fix tests 2011-08-31 19:05:21 +02:00
Jiří Klimeš
379d9044fb ifnet: fix GError handling in ifnet_update_connection_from_config_block() 2011-08-31 17:27:27 +02:00
Michael Stapelberg
de38843828 dnsmasq: use '@interface' for link-local DNS servers in the dnsmasq config
inet_ntop() either returns 'address%interface' or just 'address'. In the first
case, we replace '%' with '@' since dnsmasq supports '%' only since version
2.58. In the second case, we append '@interface' to make it work.

(small fixes by dcbw)
2011-08-25 15:49:41 -05:00
Dan Williams
7bf04582e3 release: update NEWS 2011-08-25 13:13:54 -05:00
Dan Williams
aa20577879 release: update NEWS; forgot about the WiMAX support in 0.9 2011-08-24 17:22:30 -05:00
Dan Williams
b02d132f7e todo: add notes about pushing network selection to wpa_supplicant 2011-08-24 10:51:39 -05:00
Dan Williams
fb6cf1fe68 todo: add some notes about tablet/mobile optimizations we should do 2011-08-24 10:17:36 -05:00
Dan Williams
92fd29012b release: update NEWS with 0.9 changes
Grr.  Forgot to do this before rolling the 0.9 tarball even
though I'd been religiously updating 0.8 NEWS.  Sorry...
2011-08-24 08:51:51 -05:00
Dan Williams
b3ca1e56c1 Merge remote-tracking branch 'origin/agent-secrets' 2011-08-23 09:34:55 -05:00
Dan Williams
0fe8c80fae Merge branch 'libnl3' 2011-08-23 09:30:50 -05:00
Dan Williams
2a56da25f2 release: version bump after release
Start of new development version 0.9.1; next stable release
will be 0.9.2.
2011-08-23 09:29:43 -05:00
Dan Williams
832c1aa69b release: bump version to 0.9.0
Yay!
2011-08-22 20:33:07 -05:00
Dan Williams
2a5617c22b docs: update documentation for nm_utils_security_valid() 2011-08-22 20:33:07 -05:00
Dan Williams
911328e520 docs: update NetworkManager.h code documentation 2011-08-22 20:33:07 -05:00
Dan Williams
c9f1a728ac build: update gitignore 2011-08-22 20:33:07 -05:00
Dan Williams
a8eaa4a3ea docs: fix a wrong variable name in code documentation 2011-08-22 20:33:07 -05:00
Dan Williams
e3cc3366b2 docs: fix a prototype causing doc generation warnings 2011-08-22 20:33:07 -05:00
Dan Williams
389c847a78 doc: fix a settings specification type 2011-08-22 18:15:41 -05:00
Andika Triwidada
1a12a30679 po: updated Indonesian translation (bgo #656514) 2011-08-22 18:08:07 -05:00
Dan Williams
1bae763d4d build: mention libiw (in addition to wireless-tools) if headers aren't found (bgo #656340) 2011-08-22 17:30:45 -05:00
Yuri Chornoivan
aa9d902add po: updated Ukranian translation (bgo #656921) 2011-08-22 17:25:08 -05:00
Evan Broder
0b8097a26a supplicant: incorporate subject_match and altsubject_matches into supplicant config (bgo #341323) 2011-08-19 18:20:49 -05:00
Evan Broder
ca968105da supplicant: add new separator option to ADD_STRING_LIST_VAL macro 2011-08-19 18:20:49 -05:00
Evan Broder
4f38f02add settings: add 802.1X setting properties for subject and altsubject matches
Includes subject_match and phase2_subject_match (string) parameters,
and altsubject_matches and phase2_altsubject_matches (list of string)
parameters.

subject_match is matched against a substring of the subject from the
certificate presented by the remote authentication server. If this
option is unset, no subject verification is performed.

altsubject_matches are each tested against the alternate subject name
(altSubjectName) of the certificate presented by the remote
authentication server. If this option is unset, no verification of the
altSubjectName is performed.
2011-08-19 18:20:41 -05:00
Dan Williams
770548ac04 dbus: ensure NM can talk to newly installed VPN plugins (fdo #39463)
When new services are installed and the daemon reloads bus policy
(like when installing new VPN plugins with rpm or dpkg) it appears
the rules don't get loaded into NetworkManager's policy space.
Thus any D-Bus message NM sends to the newly installed VPN plugin
gets denied until a restart of NM or the machine.  Work around
this dbus bug by letting NM talk to all known VPN services in the
NM policy file which will always exist when NM is around.
2011-08-19 16:55:16 -05:00
Dan Williams
66281b4ec3 Merge remote-tracking branch 'origin/master' into agent-secrets 2011-08-16 18:00:32 -05:00
Dan Williams
dcc0f835db Merge remote-tracking branch 'origin/master' into libnl3 2011-08-16 17:58:52 -05:00
Tomeu Vizoso
77e9cd53a8 libnm-glib: allow to constuct NMObject with NULL bus 2011-08-16 17:21:07 -05:00
Tomeu Vizoso
dd175e3bf7 libnm-glib: warn early if an object is tried to be instantiated without a path 2011-08-16 17:20:49 -05:00
Daniel Drake
87b88fd38c libnm-glib: allow NMRemoteSettings constructor with NULL bus
NMRemoteSettings's constructor requires a DBusGConnection, but there
currently aren't any usable gobject-introspection bindings for that class.
This means that NMRemoteSettings can't be used over gobject-introspection.

Move the default fallback to the system bus into the constructor path, so
that introspection bindings are usable.

Python test case:
	from gi.repository import NMClient
	NMClient.RemoteSettings()

Before, this produced a segfault. Now it returns a usable RemoteSettings
object.
2011-08-16 17:19:15 -05:00
Alfredo Matos
07cc83fbdb libnl: Move to common route add function interface 2011-08-16 17:16:02 -05:00
Alfredo Matos
a73039c0ec libnl: Create a common netlink route add function 2011-08-16 17:11:52 -05:00
Alfredo Matos
83b1b1660f libnl: route delete can return ERANGE in libnl-1 2011-08-16 17:10:30 -05:00
Alfredo Matos
638d3beb01 libnl: Use compat return for nl_route_add() 2011-08-16 17:08:57 -05:00
Alfredo Matos
2e32003fd2 libnl3: Fix ESRCH return types
ESRCH becomes NLE_OBJ_NOTFOUND. Includes workaround for libnl
  aliased return value where ESRCH is being converted to a generic
  unspecified error by libnl [1].

  [1] http://git.kernel.org/?p=libs/netlink/libnl.git;a=commit;h=7e9d5f
2011-08-16 16:58:19 -05:00
Alfredo Matos
790c16c9f2 libnl3: Add ESRCH to compat error translation 2011-08-16 16:48:30 -05:00
Dan Williams
7addf3009a Merge remote-tracking branch 'origin/master' into libnl3 2011-08-16 16:45:41 -05:00
Daniel Gnoutcheff
f14d8b18ee modem: fix race with nm_modem_set_mm_enabled
Once we've sent a method call over DBus requesting that the modem be
disabled, we should assume that the modem is disabled unless we hear
otherwise.  Otherwise, code that checks the modem state immediately
after it gets disabled might think that it's enabled when it almost
certainly is not.
2011-08-16 16:37:01 -05:00
Daniel Gnoutcheff
ac27e33f0c policy: don't autoconnect disabled modems
Normally, a device disabled via nm_device_interface_set_enabled() will
shift into the UNAVAILABLE state.  Modems, however, don't do that.
Rather, they pretend that they are in the DISCONNECTED state, presumably
to make it easier to re-enable them.  To avoid accidentally re-enabling
and autoconnecting a disabled modem, we need to explicitly make
nm_device_interface_get_enabled() == true a prerequisite for
autoconnecting.
2011-08-16 16:34:21 -05:00
Dan Williams
2b2404bbef settings: preserve agent secrets the right way
What we want to do here is keep separate caches of system and
agent secrets.  For system secrets, we cache them because NM
periodically clears secrets using nm_connection_clear_secrets() to
ensure they don't stay around in memory, and that transient secrets
get requested again when they are needed.  For agent secrets, we
only want them during activation, but a connection read from disk
will not include agent secrets becuase by definition they aren't
stored in system settings along with the connection.  Thus we need
to keep the agent/transient secrets somewhere for the duration of
the activation to ensure they don't get deleted.

This removes the copy-back hack in update_auth_cb() which copied
agent/transient secrets back into the connection over top of the
transient secrets that had been copied back in
nm_settings_connection_replace_settings().  No reason to copy
them twice if we keep an agent/transient secrets hash and do
the right thing with it.
2011-08-16 16:19:23 -05:00
Dan Williams
e2d88f59e6 settings: preserve agent secrets over Update operation
The core problem was that the Update would trigger a write to
disk to save the connection's new settings, which called
nm_settings_connection_replace_settings().  Which saved existing
transient (agent/unsaved) secrets, replaced settings with the
new ones from Update(), then copied back the old transient
secrets.  This was to ensure that changes triggered from getting
agent secrets during activation (which might write the connection
out to disk if new system secrets were provided, which triggered
an inotify read-back of the connection, which blew away the
transient secrets just returned from the agent) didn't blow away
transient secrets.  Unfortunately that fix was too general.

As a quick hack for now, copy the new secrets and re-apply them
after nm_connection_replace_settings() has run.  We'll do the
actual fix later, but it's more involved and needs more testing
so we don't want to apply it this close to release.
2011-08-16 15:48:38 -05:00
Dan Williams
4d635844ec cli: remove unused libraries from the makefile
Nothing in cli uses the marshalller stuff.
2011-08-12 11:05:08 -05:00
Dan Williams
0cb27772f3 docs: update VPN setting 'user-name' property documentation
Lamarque wanted clarification about how it's supposed to be used.
2011-08-12 10:23:25 -05:00