mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 04:08:01 +02:00
nm-manager: start removing user settings services
It turns out that user settings services are strange and complicated beasts. We will remove support for them, and we will later implement security mechanisms on the system settings service that will do what user settings services were intended to do. This commit is a bulk removal of nm-manager's internal support code for user settings services. The external API is largely unchanged, but errors are returned if anyone ties to do something with user settings. Work remaining includes some possible flattening of nm-manager's internal code, along with code removal and API changes in other modules.
This commit is contained in:
parent
759ad39c8c
commit
443c95a6b9
3 changed files with 51 additions and 1016 deletions
1061
src/nm-manager.c
1061
src/nm-manager.c
File diff suppressed because it is too large
Load diff
|
|
@ -111,8 +111,6 @@ NMState nm_manager_get_state (NMManager *manager);
|
|||
|
||||
GSList *nm_manager_get_connections (NMManager *manager, NMConnectionScope scope);
|
||||
|
||||
gboolean nm_manager_auto_user_connections_allowed (NMManager *manager);
|
||||
|
||||
NMConnection * nm_manager_get_connection_by_object_path (NMManager *manager,
|
||||
NMConnectionScope scope,
|
||||
const char *path);
|
||||
|
|
|
|||
|
|
@ -731,10 +731,7 @@ auto_activate_device (gpointer user_data)
|
|||
if (nm_device_get_act_request (data->device))
|
||||
goto out;
|
||||
|
||||
/* System connections first, then user connections */
|
||||
connections = nm_manager_get_connections (policy->manager, NM_CONNECTION_SCOPE_SYSTEM);
|
||||
if (nm_manager_auto_user_connections_allowed (policy->manager))
|
||||
connections = g_slist_concat (connections, nm_manager_get_connections (policy->manager, NM_CONNECTION_SCOPE_USER));
|
||||
|
||||
/* Remove connections that are in the invalid list. */
|
||||
iter = connections;
|
||||
|
|
@ -826,7 +823,6 @@ sleeping_changed (NMManager *manager, GParamSpec *pspec, gpointer user_data)
|
|||
/* Clear the invalid flag on all connections so they'll get retried on wakeup */
|
||||
if (sleeping || !enabled) {
|
||||
connections = nm_manager_get_connections (manager, NM_CONNECTION_SCOPE_SYSTEM);
|
||||
connections = g_slist_concat (connections, nm_manager_get_connections (manager, NM_CONNECTION_SCOPE_USER));
|
||||
for (iter = connections; iter; iter = g_slist_next (iter))
|
||||
g_object_set_data (G_OBJECT (iter->data), INVALID_TAG, NULL);
|
||||
g_slist_free (connections);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue