Dan Williams
9e9a46b405
wifi: remove useless warning
2010-12-06 15:55:30 -06:00
Dan Williams
e821e61992
examples: update comments
2010-12-06 12:27:50 -06:00
Dan Williams
c602487ff3
test: add C example for printing active connection details
2010-12-06 12:14:06 -06:00
Dan Williams
fd3e8e4576
examples: build C examples
2010-12-06 12:12:52 -06:00
Canek Peláez Valdés
740dc88cb3
gentoo: handle both systemd and OpenRC loopback init at runtime
...
See Gentoo #318365
2010-12-06 09:36:28 -06:00
Andrey Borzenkov
bfbf5ef374
ifcfg-rh: fix missing connections when an unmanaged interface was present
...
Don't emit "unmanaged-specs-changed" signal in read_one_connection(),
because it causes that next connections are not listed (get_connections() is
called prematurely and only connections read so far are available).
Steps to reproduce the bug:
1) create ifcfg-fake
DEVICE=loremipsum
HWADDR=01:02:03:04:05:06
NM_CONTROLLED=no
2) restart NetworkManager
3) only connections read *before* ifcfg-fake are available
Thanks to Robert Vogelgesang <vogel@users.sourceforge.net > for updating
the patch and analysis!
2010-12-06 15:55:48 +01:00
Dan Williams
9d077444a9
settings: remove settings dict from connection 'updated' signal
...
New connections should not be pushed out in the Updated signal
because signals cannot be restricted to particular clients, and
some clients may not have permission to view the connection.
Upon receiving the Updated signal, clients should re-read the
connection using GetSettings to ensure that the client still
has permissions to view the connection, and to get the updated
settings.
2010-12-02 14:34:38 -06:00
Jiří Klimeš
6903571160
ifcfg-rh: allow missing and 0.0.0.0 GATEWAYn lines in ifcfg-routes (rh #647992 )
...
GATEWAY0=0.0.0.0 was erroneously denied. Also, missing GATEWAY0 entry caused
ifcfg-rh plugin to regard the connection as invalid. The commit fixes that and
makes it behave in accordance with initscripts.
2010-11-24 17:24:28 +01:00
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
Dan Williams
bfbb71b763
wifi: update signal quality calculation for new supplicant interface
2010-11-23 00:02:46 -06:00
Dan Williams
fb6cde508c
supplicant: convert blob handling to new supplicant interface
2010-11-22 22:34:04 -06:00
Dan Williams
f5e084c668
supplicant: convert association paths to new supplicant interface
2010-11-22 09:05:09 -06:00
Dan Williams
6ecb45ddf0
wifi: convert scanning to new supplicant interface
2010-11-22 08:40:21 -06:00
Dan Williams
848f9f4261
wifi: convert parts of association path to new supplicant interface
2010-11-22 08:30:13 -06:00
Dan Williams
8bbbd3edc3
wifi: convert AP handling to new supplicant interface
2010-11-22 08:25:09 -06:00
Dan Williams
528e087608
wifi: handle new supplicant AP property formats
2010-11-22 08:22:50 -06: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
02a1da41c6
supplicant: convert add/remove to new supplicant dbus interface
2010-11-18 17:02:04 -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
87aa9a1412
test: add helper for testing connection addition
2010-11-18 14:27:47 -06:00
Dan Williams
042468a86e
settings: convert more hand-rolled polkit to NMAuthChain
2010-11-18 14:24:58 -06:00
Dan Williams
858fc2c4b8
trivial: remove incorrect comment
2010-11-18 14:21:21 -06:00
Dan Williams
c11ba3ea10
settings: GHashTable isn't a GObject subclass
2010-11-18 14:05:57 -06:00
Dan Williams
a53c31427d
settings: make use of nm_auth_uid_in_acl()
2010-11-18 14:05:33 -06:00
Dan Williams
47eaf97d67
core: add nm_auth_uid_in_acl()
...
For checking whether a specific user ID is:
1) in a known session
2) allowed by the connection's permissions ACL
2010-11-18 13:49:47 -06:00
Dan Williams
eccca738aa
core: make nm_auth_get_caller_uid() error description non-const
...
For consistency with the next commit, so we don't need to remember
when to free the description or not.
2010-11-18 13:47:04 -06:00
Dan Williams
c3c9d93b1d
settings: fix session checking for connection operations
2010-11-18 13:04:15 -06:00
Dan Williams
ac2438518d
settings: don't allow addition of invisible connections
...
Ensure that only connections which are visible to the user adding
the connection may be added.
2010-11-18 12:53:24 -06:00
Dan Williams
64c817ddcc
test: add hostname test helper
2010-11-18 12:51:35 -06:00
Dan Williams
fe3002d9f1
settings: fix permission checking during add
2010-11-18 12:40:38 -06:00
Dan Williams
09a6f45ead
libnm-util: fix symbol visibility of nm_setting_connection_permissions_user_allowed
2010-11-18 12:29:50 -06:00
Dan Williams
9db44c42ee
settings: remove unused variables
2010-11-18 10:55:21 -06:00
Dan Williams
ca063e4d0c
libnm-util: add nm_setting_connection_permissions_has_user()
...
Utility function to determine whether a given username is in the ACL.
2010-11-18 10:36:18 -06:00
Dan Williams
c0f5872b5a
settings: don't accept possible auth as success for saving hostname
...
Since user interaction is allowed when the permission for SaveHostname
is requested, if the user didn't authorize completely when polkit
returns, we don't want to proceed with the request. Otherwise we might
get into a situation where it's possible for the user to authorize,
but they didn't, and previously the code would allow the request.
2010-11-17 17:54:04 -06:00
Dan Williams
1bbc624477
settings: port AddConnection to NMAuthChain
...
More code saved. Yay.
2010-11-17 17:53:37 -06:00
Dan Williams
670da10764
settings: port SaveHostname to NMAuthChain
...
Every line of code we remove can then be spent on
rainbows and kittens.
2010-11-17 17:44:33 -06:00
Dan Williams
02d942320d
core: fix nm_settings_get_connections() result confusion
...
It used to reference items in the list, but no longer does because
that's stupid. Fixes some merge damage and a leak.
2010-11-17 17:42:22 -06:00
Dan Williams
3de9332f09
trivial: be a bit more paranoid about re-exporting connections
2010-11-17 17:33:00 -06:00
Dan Williams
98dab62d92
core: simplify device disconnect flow
2010-11-17 17:02:21 -06:00
Dan Williams
1064397904
core: add helper to access authentication result
2010-11-17 16:56:34 -06:00
Dan Williams
3391a00354
core: fix up merge damage
2010-11-16 18:23:27 -06:00
Dan Williams
cfaa80b261
Merge remote branch 'origin/master' into rm-userset
2010-11-16 18:08:48 -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