Commit graph

7268 commits

Author SHA1 Message Date
Pavel Šimerda
a2462ed2f6 wimax: use shared implementation of hw_is_up, hw_bring_up and hw_take_down 2013-01-23 08:08:38 +01:00
Colin Walters
ae627737d5 Remove SIGSEGV/SIGFPE etc. handling
Modern operating systems come with systemwide "crash catching"
facilities; for example, the Linux kernel can now pipe core dumps out
to userspace, and programs like "systemd-coredump" and "abrt" record
these.

In this model, it's actively counterproductive for individual
processes to catch SIGSEGV because:

1) Trying to unwind from inside the process after arbitrary
   corruption is destined to fail.
2) It hides the fact that a crash happened at all - my OS test
   framework wants to know if any process crashed, and I don't
   want to guess by running regexps against /var/log/Xorg.0.log
   or whatever.

Signed-off-by: Colin Walters <walters@verbum.org>

https://bugzilla.gnome.org/show_bug.cgi?id=692032
2013-01-22 12:49:48 -05:00
Pavel Šimerda
e7caad20c9 device: share implementation of hw_is_up, hw_bring_up and hw_take_down 2013-01-22 18:03:25 +01:00
Jiří Klimeš
0f05bfb01f cli: fix a possible crash on missing SSID 2013-01-21 14:49:24 +01:00
Dan Williams
e7813c0451 trivial: move code to correct location
Clearing priv->master is a slave operation, not a master one.
Move the code under the right comment.
2013-01-17 17:11:04 -06:00
Dan Williams
a7edcfd3e2 core: handle bridge interface type detection for libnl < 3 2013-01-17 14:44:01 -06:00
Dan Williams
750147f94d release: bump version to 0.9.7.995 (0.9.8-beta1) 2013-01-15 17:34:39 -06:00
Dan Williams
16c99c035d release: update NEWS 2013-01-15 16:57:20 -06:00
Jiří Klimeš
a9fca4aa1b libnm-glib: use the same parameter names in prototypes and definitions
to calm down warning when compiling docs.
2013-01-15 12:27:00 +01:00
Jiří Klimeš
c43772a854 docs: add ADSL setting to API specs 2013-01-15 12:10:10 +01:00
Jiří Klimeš
6eaa232865 core: zero ifindex is not valid, use interface name instead (rh #894653)
otherwise an assertion in libnl's rtnl_link_build_get_request() is hit.
2013-01-14 10:12:33 +01:00
Dan Williams
57a2a532ac api: fix location of Bridge device type enum 2013-01-11 15:40:55 -06:00
Dan Winship
8d1c646134 libnm-util: and fix up NMSettingBridgePort gtk-docs too... 2013-01-11 16:21:39 -05:00
Dan Williams
240cc2f233 settings: add note about killing inotify helper (bgo #532815)
We can kill this code when we depend on a new enough glib that
includes the patches from the referenced bug report.
2013-01-11 13:02:12 -06:00
Dan Winship
d069e4894e libnm-util: fix up NMSettingBridge gtk-docs 2013-01-11 14:49:11 -05:00
Dan Winship
22669ef10e trivial: .gitignore .vapi files 2013-01-11 14:42:03 -05:00
Dan Williams
c72d976e46 wifi: fix supplicant interface state handling for is_available()
is_available() appears not to have been updated when supplicant
interface states were consolidated between the manager and the
interface objects long ago.  Soon after that, the supplicant
itself added some states.

The wifi device is available to activate whenever the supplicant
is READY or in one of it's operational modes, ie up until
COMPLETED.  Any other state means the supplicant is not ready.
2013-01-11 07:38:40 -06:00
Fran Dieguez
1d6e68dc31 po: updated Galician (gl) translation (bgo #690234) 2013-01-11 10:17:31 +01:00
Shantha kumar
f10c3b7a86 po: updated Tamil (ta) translation (bgo #690482) 2013-01-10 16:48:05 +01:00
Shankar Prasad
05fc63e35c po: updated Kannada (kn) translation (bgo #690115) 2013-01-10 16:40:54 +01:00
Dan Williams
9c839d3417 mobile: fix handling of CDMA username/password for ModemManager1
The new MM1 bits only looked at the GSM setting, which CDMA connections
don't necessarily have.
2013-01-09 18:14:37 -06:00
Jiří Klimeš
eb50c69129 introspection: update logging domains description 2013-01-09 16:47:49 +01:00
Jiří Klimeš
7b10b4d468 logging: add 'DEFAULT' logging domain
It contains logging domains that are active by default. It allows users
to set default domains back easily (after they changed them).

And fix formatting of "} else if".
2013-01-09 16:47:49 +01:00
Jiří Klimeš
0309bdc2e0 libnm-glib: add nm_client_set_logging() for setting debugging level and domains 2013-01-09 16:47:49 +01:00
Jiří Klimeš
4ce355022c libnm-glib: add nm_client_get_logging() function
to get current logging level and domains.
2013-01-09 16:47:49 +01:00
Jiří Klimeš
2952c09902 core: add GetLogging() D-Bus call to org.freedesktop.NetworkManager
Returns current logging level and domains set.
2013-01-09 16:47:49 +01:00
Jiří Klimeš
c875a4d205 libnm-glib: remove unused "wireless_enabled" variable from NMDeviceWifiPrivate 2013-01-09 16:47:39 +01:00
Jiří Klimeš
e837098b00 libnm-glib: add nm_device_wifi_request_scan_simple() to tell NM to scan for APs
by calling RequestScan() D-Bus call on the Wi-Fi device (without any options).
2013-01-09 16:41:40 +01:00
Pavel Šimerda
998f4ccc88 build: add code coverage support
Use the following in Makefile.am to enable code coverage for individual modules:

@GNOME_CODE_COVERAGE_RULES@
my_program_LIBS = … $(CODE_COVERAGE_LDFLAGS) …
my_program_CFLAGS = … $(CODE_COVERAGE_CFLAGS) …
2013-01-08 13:30:56 +01:00
Dan Winship
1d89bc0004 systemd: set KillMode=process
By default, when shutting NM down, systemd will kill everything in its
cgroup. But this can cause problems (eg, NM thinking that dhclient
crashed and then taking down an interface that it would otherwise have
left up). Fix this by setting KillMode=process, which tells systemd to
only kill NM itself, and let NM kill its children.

https://bugzilla.redhat.com/show_bug.cgi?id=876218
2013-01-04 11:53:03 -05:00
Alban Browaeys
e78c3e83d2 build: negate the grep result. Not the echo result.
https://bugzilla.gnome.org/show_bug.cgi?id=690991
2013-01-02 12:50:32 -05:00
Alban Browaeys
338f1e4e6a build: Fix with_session_tracking check vs consolkit.
Fix with_session_tracking check vs consolkit,
missing dollar before identifier.

https://bugzilla.gnome.org/show_bug.cgi?id=690991
2013-01-02 12:50:32 -05:00
Pavel Šimerda
a787e5c585 build: cleanups 2012-12-28 19:21:25 +01:00
Guido Günther
1208f6e512 build: various session tracking fixes 2012-12-28 19:00:07 +01:00
Aleksander Morgado
6c16796119 modem-manager: avoid assertion when exposed modem has no 3GPP/3GPP2 capabilities
If, for any reason, MM exposes a modem object without 3GPP or 3GPP2
capabilities, just return an error instead of assert()-ing.
2012-12-19 10:29:13 -06:00
Dan Williams
94d6074e26 core: fix crash on device deactivation after 'pending' branch merge
Since the manager now tracks active connections, it needs to hold
a reference to the active connection objects too.  The active
connection teardown code was changed to release that reference
(_active_connection_cleanup()) but the creation code was never
changed to remove the bits that pass ownership over the initial
reference to the NMDevice.  Fix that.
2012-12-18 21:06:02 -06:00
Pavel Šimerda
a596db45f0 build: add --enable-tests=root to enable tests that require uid=0 2012-12-18 14:15:13 +01:00
Jiří Klimeš
954ce65e99 ifcfg-rh: treat missing IPv6 setting as IPv6 "auto" method (rh #830434) 2012-12-18 10:40:35 +01:00
Dan Williams
c0d15e8eb2 trivial: remove unused argument 2012-12-17 17:01:11 -06:00
Dan Williams
9065f247c3 vpn: reduce memory usage a bit
No need to copy the list when (a) we never care if it gets modified
in-place (since the loops break when the connection is found) and
(b) we never modify it in place anyway.  Reduces the possibility of
leaking the list due to programming errors too.
2012-12-17 17:01:11 -06:00
Dan Williams
1fcb577e19 vpn: make nm_vpn_manager_deactivate_connection() take an object, not a path
Pointless to look up the object by its path when we already have the object.
2012-12-17 17:01:11 -06:00
Dan Williams
1b968f4021 core: simplify looking up NMActiveConnection objects by object path 2012-12-17 17:01:10 -06:00
Dan Williams
43813cc563 vpn: remove unused connection activated/deactivated signals
Replaced by watching the connections' states directly.
2012-12-17 17:01:10 -06:00
Dan Williams
f8f1a131f5 policy: monitor connection activation/deactivation via the manager
Instead of through the VPN manager.
2012-12-17 17:01:10 -06:00
Dan Williams
92ea35469d core: add manager active connection added/removed signals
Will replace the VPN manager's activated/deactivated signals; listeners
can attach to the active connection's 'state' property and listen
for the changes to ACTIVATED and DEACTIVATED.  Works for all connections,
not just VPN ones.
2012-12-17 17:01:10 -06:00
Dan Williams
6ddc25dcab core: handle some connection timestamp updating in NMActiveConnection
Handle it in the base active connection class instead of in separate
places for the device and the VPN cases.
2012-12-17 17:01:10 -06:00
Dan Williams
3a10f695b3 vpn: kill nm_vpn_manager_get_vpn_connection_for_active()
No longer required now that the manager tracks active connections.
2012-12-17 17:01:10 -06:00
Dan Williams
a64127a7c2 vpn: kill nm_vpn_manager_get_active_connections()
No longer needed now that the manager tracks active connections.
2012-12-17 17:01:10 -06:00
Dan Williams
59420add04 core: track active connections directly in the manager
Instead of using devices as a proxy for active connections, and
then also asking the VPN manager for the active connections it's
tracking, just track *all* active connections in the manager.
2012-12-17 17:01:10 -06:00
Dan Williams
7258dd270f core: add the NM_ACTIVE_CONNECTION_STATE_DEACTIVATED state
We'll use this to know when to clean up and dispose of the
active connection in the manager.
2012-12-17 17:01:10 -06:00