summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* settings: don't enforce user sessionpavlix/sessionPavel Šimerda2015-02-071-2/+0
| | | | | | | | Connection visibility should not be affected by the absence of a user session tracked by logind or consolekit. Note: I haven't noticed any impact of the user session check on nm-applet.
* auth: don't enforce user sessionPavel Šimerda2015-02-071-7/+0
| | | | | | | | | | | | | | | Access to connection configuration should not be blocked by absence of a user session tracked using logind or consolekit. Access control based on UID is sufficient. This patch ensures that the user can always access connections even if he doesn't have a session tracked by logind or consolekit and even when NetworkManager is not built with logind or consolekit support. Please note that presence or absence of a session tracked by logind or consolekit doesn't carry any security information. Acked-By: Thomas Haller <thaller@redhat.com>
* agent: don't enforce user sessionPavel Šimerda2015-02-071-8/+0
| | | | | | | | | | | | | | | Agent registration should not be blocked by absence of a user session tracked using logind or consolekit. Access control based on UID is sufficient. This patch ensures that the user can always register a secret agent, even if he doesn't have a session tracked by logind or consolekit and even when NetworkManager is not built with logind or consolekit support. Please note checking for presence or absence of a user session tracked by logind has no value in this context. Acked-By: Thomas Haller <thaller@redhat.com>
* tests: fix valgrind script to handle exit value 77 (skip)Thomas Haller2015-02-061-1/+1
|
* callouts/tests: fix parsing dhcp in get_dispatcher_file()Thomas Haller2015-02-061-1/+1
|
* wwan: recheck available connections when modem becomes unlocked (bgo #740966)Dan Williams2015-02-051-0/+3
| | | | | | | NMDevice rechecks available connections when the device moves to the DISCONNECTED state, but connections are not available if the modem is PIN locked at that time. Available connections were never re-checked when the modem was then unlocked while in the DISCONNECTED state.
* core: fix session-monitor build with --with-session-tracking=noneDan Williams2015-02-051-0/+2
|
* wwan: fix wrong assert in deactivate_cleanup()Lubomir Rintel2015-02-041-1/+2
| | | | | | | | | | When the modem device is abruptly disconnected, nm_modem_device_state_changed() calls deactivate_cleanup() with a NULL device argument and that's perfectly fine. We should only check the instance type if we know the device is non-NULL. (NetworkManager:9166): NetworkManager-wwan-CRITICAL **: deactivate_cleanup: assertion 'NM_IS_DEVICE ( failed
* config,connectivity: merge branch 'th/rh1066697_reload_config'Thomas Haller2015-02-0320-443/+1382
|\ | | | | | | | | | | | | | | Refactor NMConfig to support reloading. Implement reloading of NMConnectivity parameters https://bugzilla.redhat.com/show_bug.cgi?id=1066697
| * config: use flags argument in config-changed signal instead of a hash tableth/rh1066697_reload_configThomas Haller2015-02-035-42/+66
| |
| * config: make NMConfig implement GInitableThomas Haller2015-02-031-17/+36
| |
| * config: move no-auto-default to NMConfigDataThomas Haller2015-02-037-51/+143
| | | | | | | | | | | | | | | | With this change, NMConfig is really immutable and all modifyable parts migrated to NMConfigData. Another advantage is that components can now subscribe to NMConfig changes to pickup changes to no-auto-default.
| * config: refactor merging no_auto_defaultThomas Haller2015-02-031-16/+13
| |
| * config: move keyfile values to NMConfigDataThomas Haller2015-02-037-79/+121
| |
| * config: add new function nm_config_data_diff()Thomas Haller2015-02-033-20/+34
| |
| * config: move main_file and description to NMConfigDataThomas Haller2015-02-039-37/+104
| | | | | | | | | | Every reload might change the main_file and description. Move those properties to NMConfigData.
| * config: refactor reloading not to create a second NMConfig instanceThomas Haller2015-02-033-37/+52
| |
| * config: minor refactoring to highlight mutable property no_auto_default of ↵Thomas Haller2015-02-031-3/+9
| | | | | | | | NMConfig
| * config: refactor read_entire_config() to merge command line optionsThomas Haller2015-02-031-27/+34
| |
| * config: refactor to inject NMConfigCmdLineOptions to NMConfig constructorThomas Haller2015-02-032-7/+42
| |
| * config: refactor nm_config_new() by extracting function read_entire_config()Thomas Haller2015-02-032-20/+72
| |
| * config: refactor nm_config_new() by extracting function _get_config_dir_files()Thomas Haller2015-02-031-38/+54
| |
| * config/trivial: rename variables for configuration fileThomas Haller2015-02-037-29/+29
| | | | | | | | | | The name "nm_conf_path" and cli.config_path" were not consistent. Rename them both to "config_main_file".
| * config: refactor read_config() to make it independent from NMConfigThomas Haller2015-02-031-23/+30
| |
| * config: implement reloading of connectivity parametersThomas Haller2015-02-033-2/+32
| |
| * connectivity: make NMConnectivity independent of NMConfigThomas Haller2015-02-033-13/+18
| |
| * config: add support for reloading of configurationThomas Haller2015-02-033-1/+85
| | | | | | | | | | | | | | | | | | | | No actual reloading is yet implemented. Later we will decide on specific configuration parameters where we support reloading. They must be then implemented one-by-one. Some configuration parameters can be set via command line. If a parameter is set from command line, the original value from command line will still be preserved after reloading.
| * config: add handler for SIGHUP and a reload-configuration stubThomas Haller2015-02-034-3/+18
| |
| * config: use NMConfigData in NMConfigThomas Haller2015-02-034-44/+50
| |
| * config: add new NMConfigData classThomas Haller2015-02-034-0/+251
| | | | | | | | | | | | | | | | | | | | The NMConfig class should be immutable and its properties should not change, with one exception: the NMConfigData property. Later, when changing/reloading a configuration, NMConfig will only swap the NMConfigData instance. The NMConfigData instance itself is also immutable.
| * config: add nm_config_setup() to initialize config singletonThomas Haller2015-02-037-118/+199
| | | | | | | | | | | | | | | | | | Make nm_config_new() usable without accessing static/singleton data. nm_config_setup() is now used to initialize the singleton. Still, you must not call nm_config_get() before calling nm_config_setup() or after freeing the provided singleton instance.
| * config/trivial: fix returning FALSE instead of NULL in nm_config_new()Thomas Haller2015-02-031-1/+1
| |
| * config: fix memory leak in merge_no_auto_default_state()Thomas Haller2015-02-031-6/+10
| |
| * config: forward declare NMConfig in nm-types.hThomas Haller2015-02-032-2/+3
| |
| * connectivity: add logging macros to nm-connectivity.cThomas Haller2015-02-031-18/+33
| | | | | | | | They add a common prefix to all logging lines.
| * connectivity: refactor handling parameters of NMConnectivityThomas Haller2015-02-031-78/+128
| | | | | | | | | | | | | | | | | | | | | | Currently the three parameters for the connectivity check (uri, interval, response) don't get reset. Soon they might be modified at any time when reloading the configuration. When calling the asynchronous HTTP connectivity check, we want to preserve the original parameters so that the result callback still can access them later. Pass the uri and response parameter on as ConCheckCbData.
| * connectivity: refactor converting connectivity states to stringThomas Haller2015-02-033-8/+8
| |
| * connectivity: add missing G_PARAM_CONSTRUCT for NM_CONNECTIVITY_URI propertyThomas Haller2015-02-031-0/+1
| |
| * connectivity/trivial: fix white space and line-break in nm-connectivity.cThomas Haller2015-02-031-20/+22
| |
| * connectivity: make NMConnectivity:dispose() reentrantThomas Haller2015-02-031-2/+2
| |
| * connectivity: add code comment to nm_connectivity_check_cb()Thomas Haller2015-02-031-0/+1
|/
* ibft: avoid logging multiple lines when ibft failsThomas Haller2015-02-031-0/+9
| | | | | | | In case of error, ibft prints an error message to stderr with two trailing newlines. This causes multiple lines in our logfile. Replace newlines in the error message by whitespaces.
* po: updated Ukranian translation (bgo #743852)Yuri Chornoivan2015-02-031-1246/+979
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=743852
* po: update Gujarati translationAnkit Patel2015-02-031-14/+44
|
* po: update German (de) translationHedda Peters2015-02-031-20/+18
|
* core: fix WiMAX enabled state file property nameDan Williams2015-02-021-1/+1
| | | | | | The manager wrote the user state to the state file in /var with the key "WiMAXEnabled", but it was read from the state file as "WimaxEnabled". Clearly that's not going to work.
* build: add compile option to disable building of Wi-Fi pluginThomas Haller2015-01-303-18/+44
| | | | | | | | | Before, the Wi-Fi plugin was always build. Users who didn't want to use it would simply drop "libnm-device-plugin-wifi.so". Add a compile time option to disable needlessly building the plugin. https://bugzilla.gnome.org/show_bug.cgi?id=743388
* manager: fix impl_manager_add_and_activate_connection()Thomas Haller2015-01-301-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note also the comment "Just make sure we don't expect specific data being in the connection till then (especially in validate_activation_request())." in impl_manager_add_and_activate_connection(). Creating a connection caused a failed assertion: #0 0x00007ff8da3aa4e9 in g_logv (log_domain=0x7ff8ddf41036 "NetworkManager", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7ffff5a0a090) at gmessages.c:989 #1 0x00007ff8da3aa63f in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at gmessages.c:1025 #2 0x00007ff8dde8c47a in nm_utils_get_ip_config_method (connection=0x7ff8def21d20, ip_setting_type=140706868598912) at NetworkManagerUtils.c:1252 #3 0x00007ff8dde7d654 in validate_activation_request (self=0x7ff8def62150, context=0x7ff8deff5a00, connection=0x7ff8def21d20, device_path=0x7ff8def3f770 "/org/freedesktop/NetworkManager/Devices/2", out_device=0x7ffff5a0a370, out_vpn=0x7ffff5a0a36c, error=0x7ffff5a0a378) at nm-manager.c:3061 #4 0x00007ff8dde7b7a2 in impl_manager_add_and_activate_connection (self=0x7ff8def62150, settings=0x7ff8def95460, device_path=0x7ff8def3f770 "/org/freedesktop/NetworkManager/Devices/2", specific_object_path=0x7ff8deeeced0 "/org/freedesktop/NetworkManager/AccessPoint/227", context=0x7ff8deff5a00) at nm-manager.c:3386 #5 0x00007ff8dde6bd9c in dbus_glib_marshal_nm_manager_VOID__BOXED_BOXED_BOXED_POINTER (closure=0x7ffff5a0a5f0, return_value=0x0, n_param_values=5, param_values=0x7ff8defb9d30, invocation_hint=0x0, marshal_data=0x7ff8dde7b660 <impl_manager_add_and_activate_connection>) at ./nm-manager-glue.h:189 #6 0x00007ff8dc506885 in invoke_object_method (message=0x7ff8def99a00, connection=0x7ff8deeec940, method=0x7ff8de1a6878 <dbus_glib_nm_manager_methods+72>, object_info=0x7ff8de1a2e70 <dbus_glib_nm_manager_object_info>, object=0x7ff8def62150) at dbus-gobject.c:1899 #7 object_registration_message (connection=0x7ff8deeec940, message=message@entry=0x7ff8def99a00, user_data=user_data@entry=0x7ff8def16da0) at dbus-gobject.c:2161 #8 0x00007ff8dc2cef86 in _dbus_object_tree_dispatch_and_unlock (tree=0x7ff8deeec5e0, message=message@entry=0x7ff8def99a00, found_object=found_object@entry=0x7ffff5a0a814) at dbus-object-tree.c:862 #9 0x00007ff8dc2c10d9 in dbus_connection_dispatch (connection=connection@entry=0x7ff8deeec940) at dbus-connection.c:4699 #10 0x00007ff8dc503d65 in message_queue_dispatch (source=source@entry=0x7ff8deeee720, callback=<optimized out>, user_data=<optimized out>) at dbus-gmain.c:90 #11 0x00007ff8da3a32a6 in g_main_dispatch (context=0x7ff8deebd320) at gmain.c:3066 #12 g_main_context_dispatch (context=context@entry=0x7ff8deebd320) at gmain.c:3642 #13 0x00007ff8da3a3628 in g_main_context_iterate (context=0x7ff8deebd320, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3713 #14 0x00007ff8da3a3a3a in g_main_loop_run (loop=0x7ff8deebd3e0) at gmain.c:3907 #15 0x00007ff8dddc0979 in main (argc=1, argv=0x7ffff5a0afd8) at main.c:442 Fixes: 477033b9eff9a6ba168805eafe68272c62cb1cb4
* examples: add some examples in Lua using lgi libraryJiří Klimeš2015-01-307-0/+221
| | | | | | | | | | | | | [libnm] https://developer.gnome.org/libnm/1.0/ [lgi] https://github.com/pavouk/lgi [lgi-guide] https://github.com/pavouk/lgi/blob/master/docs/guide.md On most distribution just install lua-lgi. Note: There is a bug in lgi. It doesn't handle GPtrArray corectly. It results in crashing on list-devices.lua and list-connections.lua. I will send a patch to lgi to fix the issue.
* po: fix small error in Telugu translationDan Williams2015-01-291-2/+1
| | | | The fuzzy tag is wrong.