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
Dan Williams
8f699a77f2
libnm-util: check all valid permissions property types
2010-10-29 23:19:41 -05:00
Dan Williams
b93cad0149
keyfile: propagate errors from updating new connection settings
2010-10-29 23:16:04 -05:00
Dan Williams
d3e640eacf
ifcfg-rh: propagate errors from updating new connection settings
2010-10-29 23:15:38 -05:00
Dan Williams
034aee641a
ifcfg-rh: fix possible warning
...
'added' won't always be valid, and thus the GObject typecast could fail.
Use a C typecast instead.
2010-10-29 23:14:42 -05:00
Dan Williams
453ea4d5c7
settings: make sure we use a clear error every time
2010-10-29 23:13:57 -05:00
Dan Williams
947efa3080
libnm-util: verify permissions property type
...
Connections are normally created from hashes using g_object_set()
which calls that object's set_property handler. But GObject does
not allow errors to be returned from property handlers, so if the
type doesn't match what it should be, the property does not get
set, and error is printed to stdout, and life goes on.
But that's not what we want for the permissions property since the
client might expect that property to be set, but the connection now
is available to everyone. So validate the permissions property
type (its really the only one we need to be so paranoid about)
and return an error when the incoming property type is wrong.
2010-10-29 22:31:23 -05:00
Dan Williams
85db10a13f
settings: fix connection addition
...
Need to make sure we actually export the connection over D-Bus (via
claim_connection()) before we try to return its object path in the
AddConnection reply. Second, we need to send the path as a string
in the reply, not an object, since the return type is an object path.
2010-10-29 22:10:32 -05:00
Dan Williams
9d725be3a9
settings: fix signature of connection updated handler
2010-10-29 22:05:23 -05:00
Dan Williams
c2ca4298fa
ifcfg-rh: ensure connection is still alive for the removal signal
2010-10-29 16:58:07 -05:00
Dan Williams
37845af954
settings: return new connection object path from AddConnection
...
Finally.
2010-10-29 14:34:33 -05:00
Dan Williams
856a1c6b2c
ifnet: fix memory leak
2010-10-29 14:01:22 -05:00
Dan Williams
28b17c8b4f
ifnet: trivial cleanups
2010-10-29 13:58:23 -05:00
Dan Williams
8a6e2b6560
ifnet: constify tons of stuff
...
Use 'const char *' where appropriate.
2010-10-29 13:56:23 -05:00
Dan Williams
090329d0be
ifnet: fix include name broken by 3f64bf5e36
2010-10-29 11:02:56 -05:00
Dan Williams
d1faa496d0
ifcfg-rh: remove unused UDI stuff
2010-10-28 09:29:16 -05:00
Dan Williams
3f64bf5e36
settings: rename NM_SYSCONFIG_SETTINGS_ERROR -> NM_SETTINGS_ERROR
2010-10-27 20:38:26 -05:00
Dan Williams
83ab4ec2ee
settings: system-settings -> settings
2010-10-27 20:22:14 -05:00
Dan Williams
1ec6b67162
settings: rename NMSysconfigSettings to NMSettings
2010-10-27 20:05:23 -05:00
Dan Williams
18f819d71d
policy: clean up device signal handling
2010-10-27 16:57:31 -05:00
Dan Williams
6329fadb48
core: fix refcounting of settings object
2010-10-27 16:50:57 -05:00
Dan Williams
e2275bba68
settings: fix handling of connection visibility changes
2010-10-27 16:50:09 -05:00
Dan Williams
3c32c02778
policy: fix and clean up policy signal disconnection on dispose
2010-10-27 16:46:32 -05:00
Dan Williams
b3b722e234
core: fix session monitor initialization
...
Braindead error handling on my part.
2010-10-27 16:45:52 -05:00
Dan Williams
33deafe69d
settings: return the right thing when listing connections
2010-10-27 16:24:48 -05:00
Dan Williams
153e11eeea
settings: small optimization
...
hash table already has the exported object path, no reason to ask
the connection itself for it.
2010-10-27 16:23:47 -05:00
Dan Williams
330cb35630
policy: make sure we have a valid settings object
2010-10-27 16:22:18 -05:00
Dan Williams
02711a0e67
settings: re-add exported NewConnection signal
...
Oops, got removed in an earlier commit.
2010-10-27 16:20:41 -05:00
Dan Williams
f1d4af6996
settings: make sure we get our D-Bus connection before using it
2010-10-27 16:17:44 -05:00
Dan Williams
84def2fedf
settings: remove connection tracking from NMManager
...
NMSysconfigSettings has the authoritative list of connections, no reason
to duplicate all that tracking code in NMManager. Add the missing bits
that the manager had to NMSysconfigSettings, and point NMPolicy at the
settings object instead of NMManager for that.
2010-10-27 15:47:10 -05:00
Dan Williams
b51cef3cba
settings: clean up connection visibility and session change handling
2010-10-26 16:33:47 -05:00
Dan Williams
edbf4a3ca2
core: allow ConsoleKit usage to be disabled
2010-10-26 15:57:03 -05:00
Dan Williams
e5adfcbabe
settings: remove remnants of unused CheckPermissions signal
2010-10-26 11:40:43 -05:00