Compare commits
230 Commits
Author | SHA1 | Date |
---|---|---|
Beniamino Galvani | e481288c3e | |
Beniamino Galvani | 229955ef0b | |
Adam Williamson | ef05be83e2 | |
Kevin Fenzi | 948f57c7bf | |
Adam Williamson | c609302693 | |
Lubomir Rintel | 86df8c88db | |
Lubomir Rintel | d4cbc3d2d2 | |
Thomas Haller | 3562d94a12 | |
Lubomir Rintel | 0a4365e5af | |
Lubomir Rintel | 589a1c573c | |
Thomas Haller | 3049c2df9a | |
Thomas Haller | 9aa462c3d5 | |
Yaakov Selkowitz | 268730fdde | |
Lubomir Rintel | d11b67721a | |
Fernando Fernandez Mancera | 4a5d12e071 | |
Fedora Release Engineering | 2cb10e4348 | |
Beniamino Galvani | 97dcdaaf53 | |
Lubomir Rintel | 9e45edd668 | |
Thomas Haller | 0f59c7739b | |
Thomas Haller | 8932641c49 | |
Thomas Haller | fe89fe48df | |
Wen Liang | 971a5b8ee2 | |
Beniamino Galvani | c5811ea797 | |
Thomas Haller | 3177397698 | |
Ana Cabral | eb5fbe00af | |
Beniamino Galvani | e27d4677d1 | |
Fedora Release Engineering | 460034d95b | |
Vojtech Bubela | 022b5635e4 | |
Lubomir Rintel | e83c290128 | |
Ana Cabral | e41df17cd6 | |
Ana Cabral | 136952f729 | |
Thomas Haller | 53393c4b58 | |
Thomas Haller | a745e634cf | |
Thomas Haller | 42ff700916 | |
Ana Cabral | 49cb2c5734 | |
Lubomir Rintel | 7cf2ae3afa | |
Beniamino Galvani | f403f8efc4 | |
Michael Scherer | 50b8516937 | |
Beniamino Galvani | 8bcd242d34 | |
Lubomir Rintel | 9dc614162a | |
Lubomir Rintel | 29841c7d57 | |
Lubomir Rintel | 0b5c393efe | |
Lubomir Rintel | c3b4682a03 | |
Lubomir Rintel | ca43676e5e | |
Thomas Haller | 993bfd4a39 | |
Thomas Haller | 73ea8c0c0f | |
Thomas Haller | bf5f80eb09 | |
Thomas Haller | 2daaa0dfe3 | |
Fedora Release Engineering | 8c1c57be16 | |
Thomas Haller | 88df317665 | |
Wen Liang | 341972ce75 | |
Wen Liang | 93fb0bf10a | |
Beniamino Galvani | f839faf6ba | |
Beniamino Galvani | 0130e35f80 | |
Beniamino Galvani | 8594b59280 | |
Thomas Haller | 2c2c15fe51 | |
Wen Liang | 0bf341083e | |
Fernando Fernandez Mancera | 4a6b3fc1cc | |
Thomas Haller | 373fa8cd0f | |
Thomas Haller | 76947cefc7 | |
Fedora Release Engineering | aa51858262 | |
Fedora Release Engineering | 4f80c65cb1 | |
Thomas Haller | 2be3b50b5c | |
Thomas Haller | 74a5d6efed | |
Thomas Haller | c6fd1f3181 | |
Beniamino Galvani | c649704e87 | |
Beniamino Galvani | 0c125af8fe | |
Beniamino Galvani | c83d942eaf | |
Beniamino Galvani | b069eff77c | |
Beniamino Galvani | 58024e4031 | |
Thomas Haller | 923d3d1d99 | |
Thomas Haller | dbfd35a1ec | |
Thomas Haller | 598b6a70ba | |
Fedora Release Engineering | 6db3c9359d | |
Thomas Haller | d08e71d9e7 | |
Thomas Haller | a6813af4b6 | |
Peter Robinson | d106900593 | |
Tom Stellard | 8f93680134 | |
Thomas Haller | 7a48b33607 | |
Jonathan Lebon | 3240dc5220 | |
Tom Stellard | 85ab70ffcd | |
Mohan Boddu | 1130677af4 | |
Thomas Haller | a18e85809f | |
Beniamino Galvani | 1d764a957f | |
Thomas Haller | 36c0fdc256 | |
Thomas Haller | 103896827d | |
Yaroslav Fedevych | 46a78c9b14 | |
Thomas Haller | a32a9e28b5 | |
Thomas Haller | d6f04ca2cf | |
Fedora Release Engineering | 8de97ab4ed | |
Thomas Haller | acbaadae23 | |
Thomas Haller | f6133686c9 | |
Thomas Haller | a06b38bcbe | |
Thomas Haller | 28e6474b9c | |
Thomas Haller | bea355fedb | |
Thomas Haller | b190302070 | |
Thomas Haller | c2f5bb45e9 | |
Björn Esser | 660f94e1b0 | |
Björn Esser | 5eadbbce7e | |
Thomas Haller | f2a09782d5 | |
Thomas Haller | 505f80e176 | |
Adam Williamson | bbc5f98e67 | |
Antonio Cardace | e3ace6b76e | |
Beniamino Galvani | c4c77b9ac1 | |
Beniamino Galvani | 7ff623281c | |
Fedora Release Engineering | 8d16f6e4dc | |
Beniamino Galvani | 3722052671 | |
Thomas Haller | b3a325009e | |
Thomas Haller | e4027e3b1a | |
Thomas Haller | ebb5317dc1 | |
Thomas Haller | 110dba26d8 | |
Lubomir Rintel | 001af63c4e | |
Thomas Haller | ac21445f51 | |
Lubomir Rintel | 81023c35a5 | |
Lubomir Rintel | 5ef97724b1 | |
Lubomir Rintel | 48c1f98497 | |
Lubomir Rintel | f3de64e64d | |
Lubomir Rintel | 231f1105ed | |
Lubomir Rintel | 84788c4cfd | |
Thomas Haller | da0c931f46 | |
Thomas Haller | 2875b62a86 | |
Fedora Release Engineering | 885bee8178 | |
Lubomir Rintel | 0dda1bed32 | |
Lubomir Rintel | 184dfaf298 | |
Lubomir Rintel | 040ae392e7 | |
Lubomir Rintel | 6cfba5306d | |
Lubomir Rintel | fd6f6acab8 | |
Lubomir Rintel | a2e07e734d | |
Lubomir Rintel | ed4473292d | |
Thomas Haller | 746be5eb7f | |
Thomas Haller | b19e5ac269 | |
Thomas Haller | 6cdec870c5 | |
Thomas Haller | 91b043a18a | |
Thomas Haller | 2a9113a2f9 | |
Igor Gnatenko | 3fcb0e3703 | |
Kalev Lember | f6c878a04a | |
Fedora Release Engineering | bcdcd326ad | |
Igor Gnatenko | 62adcbc888 | |
Igor Gnatenko | 5c6421bc88 | |
Thomas Haller | 7d883dd95e | |
Lubomir Rintel | dd82c1e921 | |
Lubomir Rintel | 7d3054a9e3 | |
Thomas Haller | 67ec5442e9 | |
Lubomir Rintel | 6fd65f9fd5 | |
Thomas Haller | 92d36d7fb0 | |
Lubomir Rintel | ac2eac23f7 | |
Lubomir Rintel | 1117a6f1f7 | |
Lubomir Rintel | e49edc693e | |
Fedora Release Engineering | cba19ad11e | |
Thomas Haller | c362687d27 | |
Thomas Haller | 5743a963d8 | |
Thomas Haller | fff3d1de66 | |
Lubomir Rintel | 29a9c41bea | |
Vladimir Benes | 98525d7834 | |
Beniamino Galvani | d72f282e41 | |
Beniamino Galvani | e4a9ce242d | |
Beniamino Galvani | 9fa973f15f | |
Beniamino Galvani | e712bef644 | |
Iryna Shcherbina | 4797640ddf | |
Thomas Haller | 17941a667b | |
Thomas Haller | 9c37f0c674 | |
Thomas Haller | 014828b918 | |
Lubomir Rintel | b8041505cb | |
Lubomir Rintel | 1f3baf8c8d | |
Lubomir Rintel | 8b792ad0ef | |
Lubomir Rintel | dc410627f6 | |
Lubomir Rintel | e5d9e5bbb2 | |
Igor Gnatenko | 3dc75bb968 | |
Thomas Haller | 2f601f9c53 | |
Björn Esser | 2b734c644d | |
Thomas Haller | f484465e78 | |
Thomas Haller | 44c7179885 | |
Lubomir Rintel | 7a812558d6 | |
Lubomir Rintel | e74c1e7f0a | |
Lubomir Rintel | cfe40a7c6d | |
Thomas Haller | 8e0f2bf38d | |
Thomas Haller | 11bdf5039f | |
Thomas Haller | de4dee2405 | |
Thomas Haller | 354ea1ca0d | |
Fedora Release Engineering | 10dfa87029 | |
Fedora Release Engineering | bbd538ac0e | |
Lubomir Rintel | 24d35df5f2 | |
Stephen Gallagher | 0cc505ca29 | |
Beniamino Galvani | 46b9e17739 | |
Beniamino Galvani | 8ca68d8c30 | |
Lubomir Rintel | a2ab3fed9e | |
Lubomir Rintel | ebf02b63fe | |
Thomas Haller | a53c203b20 | |
Thomas Haller | b018266780 | |
Thomas Haller | b67ac8dd76 | |
Thomas Haller | 5539474cc7 | |
Thomas Haller | 5ac481bbc0 | |
Thomas Haller | 085f84674b | |
Thomas Haller | 4b63db2a3c | |
Lubomir Rintel | 20a1eb6b48 | |
Lubomir Rintel | c2e258e5bf | |
Lubomir Rintel | a486a68256 | |
Lubomir Rintel | e6eb5ade9b | |
Fedora Release Engineering | 9082b9c2c9 | |
Lubomir Rintel | 02c2422a55 | |
Lubomir Rintel | 6fe2ab4151 | |
Thomas Haller | a920fbcc16 | |
Lubomir Rintel | d142b15bef | |
Thomas Haller | 263dac5e9f | |
Thomas Haller | dcba8d0c1b | |
Lubomir Rintel | ffc584dc8e | |
Lubomir Rintel | 9b6a7107cd | |
Lubomir Rintel | f6516fc10b | |
Thomas Haller | 0727cc1c28 | |
Igor Gnatenko | 49933b2c3f | |
Lubomir Rintel | 162dc7bc1d | |
Lubomir Rintel | bdcc136a74 | |
Thomas Haller | 499383592f | |
Thomas Haller | f6cdb7df44 | |
Thomas Haller | 85fff454e7 | |
Lubomir Rintel | 86376290a3 | |
Lubomir Rintel | 8c478edba5 | |
Lubomir Rintel | ce85c6f3ef | |
Lubomir Rintel | 3a1a8315bc | |
Thomas Haller | 76dec7d585 | |
Thomas Haller | 2c68942743 | |
Thomas Haller | 475c2e000a | |
Thomas Haller | 7802605bbc | |
Lubomir Rintel | ab73a3a118 | |
Thomas Haller | 26675d15eb | |
Thomas Haller | 0eea3092fc | |
Matthias Clasen | d4f66ff72e | |
Matthias Clasen | 42a976d0d2 | |
Lubomir Rintel | 5a338dc86f | |
Lubomir Rintel | aeb4a90471 |
|
@ -326,3 +326,108 @@ network-manager-applet-0.8.1.tar.bz2
|
|||
/NetworkManager-1.1.93.tar.xz
|
||||
/NetworkManager-1.1.94.tar.xz
|
||||
/NetworkManager-1.2.2.tar.xz
|
||||
/NetworkManager-1.3.0.git20160621.072358da.tar.xz
|
||||
/NetworkManager-1.4.0.tar.xz
|
||||
/NetworkManager-1.4.2.tar.xz
|
||||
/NetworkManager-1.5.2.tar.xz
|
||||
/NetworkManager-1.5.3.tar.xz
|
||||
/NetworkManager-1.5.90.tar.xz
|
||||
/NetworkManager-1.6.0.tar.xz
|
||||
/NetworkManager-1.6.2.tar.xz
|
||||
/NetworkManager-1.7.2.tar.xz
|
||||
/NetworkManager-1.7.91.tar.xz
|
||||
/NetworkManager-1.7.92.tar.xz
|
||||
/NetworkManager-1.8.0.tar.xz
|
||||
/NetworkManager-1.8.2.tar.xz
|
||||
/NetworkManager-1.8.4.tar.xz
|
||||
/NetworkManager-1.10.2.tar.xz
|
||||
/NetworkManager-1.10.4.tar.xz
|
||||
/NetworkManager-1.10.6.tar.xz
|
||||
/NetworkManager-1.10.8.tar.xz
|
||||
/NetworkManager-1.11.4.tar.xz
|
||||
/NetworkManager-1.11.90.tar.xz
|
||||
/NetworkManager-1.12.0.tar.xz
|
||||
/NetworkManager-1.12.2.tar.xz
|
||||
/NetworkManager-1.14.0.tar.xz
|
||||
/NetworkManager-1.14.2.tar.xz
|
||||
/NetworkManager-1.14.4.tar.xz
|
||||
/NetworkManager-1.15.90.tar.xz
|
||||
/NetworkManager-1.15.91.tar.xz
|
||||
/NetworkManager-1.16.0.tar.xz
|
||||
/NetworkManager-1.18.0.tar.xz
|
||||
/NetworkManager-1.19.2.tar.xz
|
||||
/NetworkManager-1.19.3.tar.xz
|
||||
/NetworkManager-1.19.5.tar.xz
|
||||
/NetworkManager-1.19.90.tar.xz
|
||||
/NetworkManager-1.20.0.tar.xz
|
||||
/NetworkManager-1.20.2.tar.xz
|
||||
/NetworkManager-1.20.4.tar.xz
|
||||
/NetworkManager-1.21.3.tar.xz
|
||||
/NetworkManager-1.21.90.tar.xz
|
||||
/NetworkManager-1.22.0.tar.xz
|
||||
/NetworkManager-1.22.2.tar.xz
|
||||
/NetworkManager-1.22.4.tar.xz
|
||||
/NetworkManager-1.22.6.tar.xz
|
||||
/NetworkManager-1.22.8.tar.xz
|
||||
/NetworkManager-1.22.10.tar.xz
|
||||
/NetworkManager-1.23.90.tar.xz
|
||||
/NetworkManager-1.23.91.tar.xz
|
||||
/NetworkManager-1.24.0.tar.xz
|
||||
/NetworkManager-1.24.2.tar.xz
|
||||
/NetworkManager-1.25.90.tar.xz
|
||||
/NetworkManager-1.26.0.tar.xz
|
||||
/NetworkManager-1.26.2.tar.xz
|
||||
/NetworkManager-1.27.90.tar.xz
|
||||
/NetworkManager-1.27.91.tar.xz
|
||||
/NetworkManager-1.28.0.tar.xz
|
||||
/NetworkManager-1.29.8.tar.xz
|
||||
/NetworkManager-1.29.9.tar.xz
|
||||
/NetworkManager-1.29.11.tar.xz
|
||||
/NetworkManager-1.29.90.tar.xz
|
||||
/NetworkManager-1.30.0.tar.xz
|
||||
/NetworkManager-1.30.2.tar.xz
|
||||
/NetworkManager-1.31.2.tar.xz
|
||||
/NetworkManager-1.31.3.tar.xz
|
||||
/NetworkManager-1.31.4.tar.xz
|
||||
/NetworkManager-1.31.90.tar.xz
|
||||
/NetworkManager-1.32.0.tar.xz
|
||||
/NetworkManager-1.32.4.tar.xz
|
||||
/NetworkManager-1.32.6.tar.xz
|
||||
/NetworkManager-1.32.8.tar.xz
|
||||
/NetworkManager-1.32.10.tar.xz
|
||||
/NetworkManager-1.32.12.tar.xz
|
||||
/NetworkManager-1.35.1.tar.xz
|
||||
/NetworkManager-1.35.2.tar.xz
|
||||
/NetworkManager-1.35.3.tar.xz
|
||||
/NetworkManager-1.35.4.tar.xz
|
||||
/NetworkManager-1.35.6.tar.xz
|
||||
/NetworkManager-1.35.7.tar.xz
|
||||
/NetworkManager-1.35.90.tar.xz
|
||||
/NetworkManager-1.35.91.tar.xz
|
||||
/NetworkManager-1.35.92.tar.xz
|
||||
/NetworkManager-1.36.0.tar.xz
|
||||
/NetworkManager-1.36.2.tar.xz
|
||||
/NetworkManager-1.36.4.tar.xz
|
||||
/NetworkManager-1.37.3.tar.xz
|
||||
/NetworkManager-1.37.90.tar.xz
|
||||
/NetworkManager-1.37.91.tar.xz
|
||||
/NetworkManager-1.37.92.tar.xz
|
||||
/NetworkManager-1.38.0.tar.xz
|
||||
/NetworkManager-1.39.8.tar.xz
|
||||
/NetworkManager-1.39.10.tar.xz
|
||||
/NetworkManager-1.39.11.tar.xz
|
||||
/NetworkManager-1.39.90.tar.xz
|
||||
/NetworkManager-1.40.0.tar.xz
|
||||
/NetworkManager-1.41.3.tar.xz
|
||||
/NetworkManager-1.41.4.tar.xz
|
||||
/NetworkManager-1.41.5.tar.xz
|
||||
/NetworkManager-1.41.6.tar.xz
|
||||
/NetworkManager-1.41.7.tar.xz
|
||||
/NetworkManager-1.41.8.tar.xz
|
||||
/NetworkManager-1.41.90.tar.xz
|
||||
/NetworkManager-1.41.91.tar.xz
|
||||
/NetworkManager-1.42.0.tar.xz
|
||||
/NetworkManager-1.43.3.tar.xz
|
||||
/NetworkManager-1.43.4.tar.xz
|
||||
/NetworkManager-1.43.5.tar.xz
|
||||
/NetworkManager-1.43.6.tar.xz
|
||||
|
|
|
@ -1,531 +0,0 @@
|
|||
From 594a225264fe501ec78a8d20ee5447d18e1175b5 Mon Sep 17 00:00:00 2001
|
||||
From: Beniamino Galvani <bgalvani@redhat.com>
|
||||
Date: Tue, 31 May 2016 17:04:03 +0200
|
||||
Subject: [PATCH 1/6] core: fix some memory leaks
|
||||
|
||||
(cherry picked from commit ec53ed2cbaab754ddf1283658b5adfba8134e757)
|
||||
(cherry picked from commit 70d194c159c80266140157db535700f8e44dbe0b)
|
||||
---
|
||||
src/dhcp-manager/nm-dhcp-client.c | 2 ++
|
||||
src/nm-manager.c | 2 +-
|
||||
src/nm-policy.c | 1 +
|
||||
3 files changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/dhcp-manager/nm-dhcp-client.c b/src/dhcp-manager/nm-dhcp-client.c
|
||||
index 9f4cdf3..c102581 100644
|
||||
--- a/src/dhcp-manager/nm-dhcp-client.c
|
||||
+++ b/src/dhcp-manager/nm-dhcp-client.c
|
||||
@@ -884,7 +884,9 @@ dispose (GObject *object)
|
||||
|
||||
g_clear_pointer (&priv->iface, g_free);
|
||||
g_clear_pointer (&priv->hostname, g_free);
|
||||
+ g_clear_pointer (&priv->fqdn, g_free);
|
||||
g_clear_pointer (&priv->uuid, g_free);
|
||||
+ g_clear_pointer (&priv->client_id, g_bytes_unref);
|
||||
|
||||
if (priv->hwaddr) {
|
||||
g_byte_array_free (priv->hwaddr, TRUE);
|
||||
diff --git a/src/nm-manager.c b/src/nm-manager.c
|
||||
index e64c68a..04b70cb 100644
|
||||
--- a/src/nm-manager.c
|
||||
+++ b/src/nm-manager.c
|
||||
@@ -3268,7 +3268,7 @@ validate_activation_request (NMManager *self,
|
||||
NM_MANAGER_ERROR,
|
||||
NM_MANAGER_ERROR_CONNECTION_NOT_AVAILABLE,
|
||||
"Sharing IPv6 connections is not supported yet.");
|
||||
- return NULL;
|
||||
+ goto error;
|
||||
}
|
||||
|
||||
/* Check whether it's a VPN or not */
|
||||
diff --git a/src/nm-policy.c b/src/nm-policy.c
|
||||
index 07bcce8..cb04f21 100644
|
||||
--- a/src/nm-policy.c
|
||||
+++ b/src/nm-policy.c
|
||||
@@ -913,6 +913,7 @@ block_autoconnect_for_device (NMPolicy *self, NMDevice *device)
|
||||
NM_DEVICE_STATE_REASON_USER_REQUESTED);
|
||||
}
|
||||
}
|
||||
+ g_slist_free (connections);
|
||||
}
|
||||
|
||||
static void
|
||||
--
|
||||
2.5.5
|
||||
|
||||
|
||||
From f5a98215c616a8a7f4acb9a3e03667444b8fda6e Mon Sep 17 00:00:00 2001
|
||||
From: Beniamino Galvani <bgalvani@redhat.com>
|
||||
Date: Tue, 24 May 2016 13:41:44 +0200
|
||||
Subject: [PATCH 2/6] dns/dnsmasq: cancel pending update on dispose
|
||||
|
||||
There might be a pending "SetServersEx" D-Bus call when the plugin is
|
||||
destroyed, ensure it gets canceled.
|
||||
|
||||
(cherry picked from commit d376787ce1a9e8c4990ed98be143ab892c9d29ed)
|
||||
(cherry picked from commit 7541ca0692668070e48adfc5fa8e4c6501600e16)
|
||||
---
|
||||
src/dns-manager/nm-dns-dnsmasq.c | 21 ++++++++++++++++-----
|
||||
1 file changed, 16 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
index 4cee160..1df01e3 100644
|
||||
--- a/src/dns-manager/nm-dns-dnsmasq.c
|
||||
+++ b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
@@ -48,6 +48,7 @@ G_DEFINE_TYPE (NMDnsDnsmasq, nm_dns_dnsmasq, NM_TYPE_DNS_PLUGIN)
|
||||
typedef struct {
|
||||
GDBusProxy *dnsmasq;
|
||||
GCancellable *dnsmasq_cancellable;
|
||||
+ GCancellable *update_cancellable;
|
||||
gboolean running;
|
||||
|
||||
GVariant *set_server_ex_args;
|
||||
@@ -265,14 +266,20 @@ add_ip6_config (NMDnsDnsmasq *self, GVariantBuilder *servers, NMIP6Config *ip6,
|
||||
}
|
||||
|
||||
static void
|
||||
-dnsmasq_update_done (GObject *source, GAsyncResult *res, gpointer user_data)
|
||||
+dnsmasq_update_done (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
|
||||
{
|
||||
- NMDnsDnsmasq *self = NM_DNS_DNSMASQ (user_data);
|
||||
- NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
|
||||
+ NMDnsDnsmasq *self;
|
||||
+ NMDnsDnsmasqPrivate *priv;
|
||||
gs_free_error GError *error = NULL;
|
||||
gs_unref_variant GVariant *response = NULL;
|
||||
|
||||
- response = g_dbus_proxy_call_finish (priv->dnsmasq, res, &error);
|
||||
+ response = g_dbus_proxy_call_finish (proxy, res, &error);
|
||||
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||
+ return;
|
||||
+
|
||||
+ self = NM_DNS_DNSMASQ (user_data);
|
||||
+ priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
|
||||
+
|
||||
if (!response)
|
||||
_LOGW ("dnsmasq update failed: %s", error->message);
|
||||
else
|
||||
@@ -290,12 +297,15 @@ send_dnsmasq_update (NMDnsDnsmasq *self)
|
||||
if (priv->running) {
|
||||
_LOGD ("trying to update dnsmasq nameservers");
|
||||
|
||||
+ nm_clear_g_cancellable (&priv->update_cancellable);
|
||||
+ priv->update_cancellable = g_cancellable_new ();
|
||||
+
|
||||
g_dbus_proxy_call (priv->dnsmasq,
|
||||
"SetServersEx",
|
||||
priv->set_server_ex_args,
|
||||
G_DBUS_CALL_FLAGS_NONE,
|
||||
-1,
|
||||
- NULL,
|
||||
+ priv->update_cancellable,
|
||||
(GAsyncReadyCallback) dnsmasq_update_done,
|
||||
self);
|
||||
g_clear_pointer (&priv->set_server_ex_args, g_variant_unref);
|
||||
@@ -559,6 +569,7 @@ dispose (GObject *object)
|
||||
NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (object);
|
||||
|
||||
nm_clear_g_cancellable (&priv->dnsmasq_cancellable);
|
||||
+ nm_clear_g_cancellable (&priv->update_cancellable);
|
||||
|
||||
g_clear_object (&priv->dnsmasq);
|
||||
|
||||
--
|
||||
2.5.5
|
||||
|
||||
|
||||
From ac4bfce7dde54a607c896e90a3269633a90f3bee Mon Sep 17 00:00:00 2001
|
||||
From: Beniamino Galvani <bgalvani@redhat.com>
|
||||
Date: Tue, 24 May 2016 14:14:25 +0200
|
||||
Subject: [PATCH 3/6] dns: clear dnsmasq cache after an update
|
||||
|
||||
When the list of DNS servers changes, old DNS entries cached by
|
||||
dnsmasq must be invalidated as the answers returned by new servers may
|
||||
be different (especially, old NXDOMAIN entries may now be valid). Call
|
||||
the dnsmasq "ClearCache" D-Bus method to achieve this.
|
||||
|
||||
https://bugzilla.redhat.com/show_bug.cgi?id=1338731
|
||||
(cherry picked from commit 4feb58b50b9fd6caceda83bab907ad107ad8ed01)
|
||||
(cherry picked from commit a701e5b7ba35a0730d756ab0c1b15f0414bee592)
|
||||
---
|
||||
src/dns-manager/nm-dns-dnsmasq.c | 31 +++++++++++++++++++++++++++++--
|
||||
1 file changed, 29 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
index 1df01e3..dd1234d 100644
|
||||
--- a/src/dns-manager/nm-dns-dnsmasq.c
|
||||
+++ b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
@@ -266,6 +266,25 @@ add_ip6_config (NMDnsDnsmasq *self, GVariantBuilder *servers, NMIP6Config *ip6,
|
||||
}
|
||||
|
||||
static void
|
||||
+dnsmasq_clear_cache_done (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
|
||||
+{
|
||||
+ NMDnsDnsmasq *self;
|
||||
+ gs_free_error GError *error = NULL;
|
||||
+ gs_unref_variant GVariant *response = NULL;
|
||||
+
|
||||
+ response = g_dbus_proxy_call_finish (proxy, res, &error);
|
||||
+ if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED))
|
||||
+ return;
|
||||
+
|
||||
+ self = NM_DNS_DNSMASQ (user_data);
|
||||
+
|
||||
+ if (!response)
|
||||
+ _LOGW ("dnsmasq cache clear failed: %s", error->message);
|
||||
+ else
|
||||
+ _LOGD ("dnsmasq update successful, cache cleared");
|
||||
+}
|
||||
+
|
||||
+static void
|
||||
dnsmasq_update_done (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
|
||||
{
|
||||
NMDnsDnsmasq *self;
|
||||
@@ -282,8 +301,16 @@ dnsmasq_update_done (GDBusProxy *proxy, GAsyncResult *res, gpointer user_data)
|
||||
|
||||
if (!response)
|
||||
_LOGW ("dnsmasq update failed: %s", error->message);
|
||||
- else
|
||||
- _LOGD ("dnsmasq update successful");
|
||||
+ else {
|
||||
+ g_dbus_proxy_call (priv->dnsmasq,
|
||||
+ "ClearCache",
|
||||
+ NULL,
|
||||
+ G_DBUS_CALL_FLAGS_NONE,
|
||||
+ -1,
|
||||
+ priv->update_cancellable,
|
||||
+ (GAsyncReadyCallback) dnsmasq_clear_cache_done,
|
||||
+ self);
|
||||
+ }
|
||||
}
|
||||
|
||||
static void
|
||||
--
|
||||
2.5.5
|
||||
|
||||
|
||||
From b71ce01f5aa5af2851a4c5516a1c11b86b65b4b8 Mon Sep 17 00:00:00 2001
|
||||
From: Beniamino Galvani <bgalvani@redhat.com>
|
||||
Date: Sun, 1 May 2016 22:24:41 +0200
|
||||
Subject: [PATCH 4/6] core: introduce nm_utils_dnsmasq_status_to_string()
|
||||
|
||||
(cherry picked from commit c0d322720a3956a40831c09f78a1dfbaf6fd9294)
|
||||
(cherry picked from commit 84b0bb5ec82661a2b47928cc49879ed49fa18602)
|
||||
---
|
||||
src/dns-manager/nm-dns-dnsmasq.c | 23 ++------------------
|
||||
src/dnsmasq-manager/nm-dnsmasq-manager.c | 36 ++++---------------------------
|
||||
src/nm-core-utils.c | 37 ++++++++++++++++++++++++++++++++
|
||||
src/nm-core-utils.h | 2 ++
|
||||
4 files changed, 45 insertions(+), 53 deletions(-)
|
||||
|
||||
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
index dd1234d..aaa6a3e 100644
|
||||
--- a/src/dns-manager/nm-dns-dnsmasq.c
|
||||
+++ b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
@@ -519,24 +519,6 @@ update (NMDnsPlugin *plugin,
|
||||
|
||||
/****************************************************************/
|
||||
|
||||
-static const char *
|
||||
-dm_exit_code_to_msg (int status)
|
||||
-{
|
||||
- if (status == 1)
|
||||
- return "Configuration problem";
|
||||
- else if (status == 2)
|
||||
- return "Network access problem (address in use; permissions; etc)";
|
||||
- else if (status == 3)
|
||||
- return "Filesystem problem (missing file/directory; permissions; etc)";
|
||||
- else if (status == 4)
|
||||
- return "Memory allocation failure";
|
||||
- else if (status == 5)
|
||||
- return "Other problem";
|
||||
- else if (status >= 11)
|
||||
- return "Lease-script 'init' process failure";
|
||||
- return "Unknown error";
|
||||
-}
|
||||
-
|
||||
static void
|
||||
child_quit (NMDnsPlugin *plugin, gint status)
|
||||
{
|
||||
@@ -547,9 +529,8 @@ child_quit (NMDnsPlugin *plugin, gint status)
|
||||
if (WIFEXITED (status)) {
|
||||
err = WEXITSTATUS (status);
|
||||
if (err) {
|
||||
- _LOGW ("dnsmasq exited with error: %s (%d)",
|
||||
- dm_exit_code_to_msg (err),
|
||||
- err);
|
||||
+ _LOGW ("dnsmasq exited with error: %s",
|
||||
+ nm_utils_dnsmasq_status_to_string (err, NULL, 0));
|
||||
} else
|
||||
failed = FALSE;
|
||||
} else if (WIFSTOPPED (status))
|
||||
diff --git a/src/dnsmasq-manager/nm-dnsmasq-manager.c b/src/dnsmasq-manager/nm-dnsmasq-manager.c
|
||||
index 764aba2..12395db 100644
|
||||
--- a/src/dnsmasq-manager/nm-dnsmasq-manager.c
|
||||
+++ b/src/dnsmasq-manager/nm-dnsmasq-manager.c
|
||||
@@ -165,36 +165,6 @@ nm_cmd_line_add_string (NMCmdLine *cmd, const char *str)
|
||||
/*******************************************/
|
||||
|
||||
static void
|
||||
-dm_exit_code (guint dm_exit_status)
|
||||
-{
|
||||
- char *msg = "Unknown error";
|
||||
-
|
||||
- switch (dm_exit_status) {
|
||||
- case 1:
|
||||
- msg = "Configuration problem";
|
||||
- break;
|
||||
- case 2:
|
||||
- msg = "Network access problem (address in use; permissions; etc)";
|
||||
- break;
|
||||
- case 3:
|
||||
- msg = "Filesystem problem (missing file/directory; permissions; etc)";
|
||||
- break;
|
||||
- case 4:
|
||||
- msg = "Memory allocation failure";
|
||||
- break;
|
||||
- case 5:
|
||||
- msg = "Other problem";
|
||||
- break;
|
||||
- default:
|
||||
- if (dm_exit_status >= 11)
|
||||
- msg = "Lease-script 'init' process failure";
|
||||
- break;
|
||||
- }
|
||||
-
|
||||
- _LOGW ("dnsmasq exited with error: %s (%d)", msg, dm_exit_status);
|
||||
-}
|
||||
-
|
||||
-static void
|
||||
dm_watch_cb (GPid pid, gint status, gpointer user_data)
|
||||
{
|
||||
NMDnsMasqManager *manager = NM_DNSMASQ_MANAGER (user_data);
|
||||
@@ -203,8 +173,10 @@ dm_watch_cb (GPid pid, gint status, gpointer user_data)
|
||||
|
||||
if (WIFEXITED (status)) {
|
||||
err = WEXITSTATUS (status);
|
||||
- if (err != 0)
|
||||
- dm_exit_code (err);
|
||||
+ if (err != 0) {
|
||||
+ _LOGW ("dnsmasq exited with error: %s",
|
||||
+ nm_utils_dnsmasq_status_to_string (err, NULL, 0));
|
||||
+ }
|
||||
} else if (WIFSTOPPED (status)) {
|
||||
_LOGW ("dnsmasq stopped unexpectedly with signal %d", WSTOPSIG (status));
|
||||
} else if (WIFSIGNALED (status)) {
|
||||
diff --git a/src/nm-core-utils.c b/src/nm-core-utils.c
|
||||
index ef44a13..a2fbdfb 100644
|
||||
--- a/src/nm-core-utils.c
|
||||
+++ b/src/nm-core-utils.c
|
||||
@@ -3085,3 +3085,40 @@ nm_utils_lifetime_get (guint32 timestamp,
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
+const char *
|
||||
+nm_utils_dnsmasq_status_to_string (int status, char *dest, guint size)
|
||||
+{
|
||||
+ static char buffer[128];
|
||||
+ char *msg, *ret;
|
||||
+ gs_free char *msg_free = NULL;
|
||||
+ int len;
|
||||
+
|
||||
+ if (status == 0)
|
||||
+ msg = "Success";
|
||||
+ else if (status == 1)
|
||||
+ msg = "Configuration problem";
|
||||
+ else if (status == 2)
|
||||
+ msg = "Network access problem (address in use, permissions)";
|
||||
+ else if (status == 3)
|
||||
+ msg = "Filesystem problem (missing file/directory, permissions)";
|
||||
+ else if (status == 4)
|
||||
+ msg = "Memory allocation failure";
|
||||
+ else if (status == 5)
|
||||
+ msg = "Other problem";
|
||||
+ else if (status >= 11)
|
||||
+ msg = msg_free = g_strdup_printf ("Lease script failed with error %d", status - 10);
|
||||
+ else
|
||||
+ msg = "Unknown problem";
|
||||
+
|
||||
+ if (dest) {
|
||||
+ ret = dest;
|
||||
+ len = size;
|
||||
+ } else {
|
||||
+ ret = buffer;
|
||||
+ len = sizeof (buffer);
|
||||
+ }
|
||||
+
|
||||
+ g_snprintf (ret, len, "%s (%d)", msg, status);
|
||||
+
|
||||
+ return ret;
|
||||
+}
|
||||
diff --git a/src/nm-core-utils.h b/src/nm-core-utils.h
|
||||
index ad0f995..b5083ac 100644
|
||||
--- a/src/nm-core-utils.h
|
||||
+++ b/src/nm-core-utils.h
|
||||
@@ -394,4 +394,6 @@ gboolean nm_utils_lifetime_get (guint32 timestamp,
|
||||
|
||||
gboolean nm_utils_ip4_address_is_link_local (in_addr_t addr);
|
||||
|
||||
+const char *nm_utils_dnsmasq_status_to_string (int status, char *dest, guint size);
|
||||
+
|
||||
#endif /* __NM_CORE_UTILS_H__ */
|
||||
--
|
||||
2.5.5
|
||||
|
||||
|
||||
From 4e78e89ac35954d38ff107c42295b1418042a13c Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Haller <thaller@redhat.com>
|
||||
Date: Mon, 30 May 2016 12:52:23 +0200
|
||||
Subject: [PATCH 5/6] dns: log when dnsmasq process exits normally
|
||||
|
||||
(cherry picked from commit a64d70f0df586d398aa1bcd74be131ed6dc75450)
|
||||
(cherry picked from commit 2deee5286726fb2933822e105ffce634df695b35)
|
||||
---
|
||||
src/dns-manager/nm-dns-dnsmasq.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
index aaa6a3e..f8b2dd3 100644
|
||||
--- a/src/dns-manager/nm-dns-dnsmasq.c
|
||||
+++ b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
@@ -531,8 +531,10 @@ child_quit (NMDnsPlugin *plugin, gint status)
|
||||
if (err) {
|
||||
_LOGW ("dnsmasq exited with error: %s",
|
||||
nm_utils_dnsmasq_status_to_string (err, NULL, 0));
|
||||
- } else
|
||||
+ } else {
|
||||
+ _LOGD ("dnsmasq exited normally");
|
||||
failed = FALSE;
|
||||
+ }
|
||||
} else if (WIFSTOPPED (status))
|
||||
_LOGW ("dnsmasq stopped unexpectedly with signal %d", WSTOPSIG (status));
|
||||
else if (WIFSIGNALED (status))
|
||||
--
|
||||
2.5.5
|
||||
|
||||
|
||||
From 3061adfc7d962ef645f2844dfce7df5e359509b5 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Haller <thaller@redhat.com>
|
||||
Date: Mon, 30 May 2016 12:58:57 +0200
|
||||
Subject: [PATCH 6/6] dnsmasq: properly handling respawning of dnsmask
|
||||
|
||||
Otherwise, when killing dnsmasq it does not get respawned:
|
||||
|
||||
dnsmasq[0x560dd7e43cf0]: dnsmasq exited normally
|
||||
dns-mgr: plugin dnsmasq child quit unexpectedly
|
||||
dns-mgr: update-dns: updating resolv.conf
|
||||
dns-mgr: config: 100 best v4 enp0s25
|
||||
dns-mgr: config: 100 best v6 enp0s25
|
||||
dns-mgr: config: 100 default v6 lo
|
||||
dns-mgr: config: 100 default v4 lo
|
||||
dns-mgr: update-dns: updating plugin dnsmasq
|
||||
dnsmasq[0x560dd7e43cf0]: adding nameserver '192.168.0.2@enp0s25'
|
||||
dnsmasq[0x560dd7e43cf0]: trying to update dnsmasq nameservers
|
||||
dns-mgr: update-resolv-conf: write internal file /var/run/NetworkManager/resolv.conf succeeded but don't update /etc/resolv.conf as it points to resolv.conf.nm
|
||||
dnsmasq[0x560dd7e43cf0]: dnsmasq disappeared
|
||||
|
||||
Previously, we would create priv->dnsmasq proxy only once,
|
||||
and not respawn the process at all.
|
||||
|
||||
https://bugzilla.gnome.org/show_bug.cgi?id=766996
|
||||
(cherry picked from commit 2e7f4aeb60579b092641cc8d65973baecbd5335b)
|
||||
(cherry picked from commit 1f8ba33d8716858cc27cf319c85e176bcf11afa3)
|
||||
---
|
||||
src/dns-manager/nm-dns-dnsmasq.c | 21 ++++++++++++++++++---
|
||||
src/dns-manager/nm-dns-plugin.c | 11 +++++++++++
|
||||
src/dns-manager/nm-dns-plugin.h | 2 ++
|
||||
3 files changed, 31 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/dns-manager/nm-dns-dnsmasq.c b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
index f8b2dd3..a9fcc88 100644
|
||||
--- a/src/dns-manager/nm-dns-dnsmasq.c
|
||||
+++ b/src/dns-manager/nm-dns-dnsmasq.c
|
||||
@@ -410,11 +410,16 @@ start_dnsmasq (NMDnsDnsmasq *self)
|
||||
NMBusManager *dbus_mgr;
|
||||
GDBusConnection *connection;
|
||||
|
||||
+ if (priv->running) {
|
||||
+ /* the dnsmasq process is running. Nothing to do. */
|
||||
+ return;
|
||||
+ }
|
||||
|
||||
- if ( priv->running
|
||||
- || priv->dnsmasq
|
||||
- || priv->dnsmasq_cancellable)
|
||||
+ if (nm_dns_plugin_child_pid ((NMDnsPlugin *) self) > 0) {
|
||||
+ /* if we already have a child process spawned, don't do
|
||||
+ * it again. */
|
||||
return;
|
||||
+ }
|
||||
|
||||
dm_binary = nm_utils_find_helper ("dnsmasq", DNSMASQ_PATH, NULL);
|
||||
if (!dm_binary) {
|
||||
@@ -446,6 +451,13 @@ start_dnsmasq (NMDnsDnsmasq *self)
|
||||
if (!pid)
|
||||
return;
|
||||
|
||||
+ if ( priv->dnsmasq
|
||||
+ || priv->dnsmasq_cancellable) {
|
||||
+ /* we already have a proxy or are about to create it.
|
||||
+ * We are done. */
|
||||
+ return;
|
||||
+ }
|
||||
+
|
||||
dbus_mgr = nm_bus_manager_get ();
|
||||
g_return_if_fail (dbus_mgr);
|
||||
|
||||
@@ -523,6 +535,7 @@ static void
|
||||
child_quit (NMDnsPlugin *plugin, gint status)
|
||||
{
|
||||
NMDnsDnsmasq *self = NM_DNS_DNSMASQ (plugin);
|
||||
+ NMDnsDnsmasqPrivate *priv = NM_DNS_DNSMASQ_GET_PRIVATE (self);
|
||||
gboolean failed = TRUE;
|
||||
int err;
|
||||
|
||||
@@ -542,6 +555,8 @@ child_quit (NMDnsPlugin *plugin, gint status)
|
||||
else
|
||||
_LOGW ("dnsmasq died from an unknown cause");
|
||||
|
||||
+ priv->running = FALSE;
|
||||
+
|
||||
if (failed)
|
||||
g_signal_emit_by_name (self, NM_DNS_PLUGIN_FAILED);
|
||||
}
|
||||
diff --git a/src/dns-manager/nm-dns-plugin.c b/src/dns-manager/nm-dns-plugin.c
|
||||
index d5cb882..f45b47f 100644
|
||||
--- a/src/dns-manager/nm-dns-plugin.c
|
||||
+++ b/src/dns-manager/nm-dns-plugin.c
|
||||
@@ -182,6 +182,17 @@ watch_cb (GPid pid, gint status, gpointer user_data)
|
||||
}
|
||||
|
||||
GPid
|
||||
+nm_dns_plugin_child_pid (NMDnsPlugin *self)
|
||||
+{
|
||||
+ NMDnsPluginPrivate *priv;
|
||||
+
|
||||
+ g_return_val_if_fail (NM_IS_DNS_PLUGIN (self), 0);
|
||||
+
|
||||
+ priv = NM_DNS_PLUGIN_GET_PRIVATE (self);
|
||||
+ return priv->pid;
|
||||
+}
|
||||
+
|
||||
+GPid
|
||||
nm_dns_plugin_child_spawn (NMDnsPlugin *self,
|
||||
const char **argv,
|
||||
const char *pidfile,
|
||||
diff --git a/src/dns-manager/nm-dns-plugin.h b/src/dns-manager/nm-dns-plugin.h
|
||||
index 7ecaa42..b328218 100644
|
||||
--- a/src/dns-manager/nm-dns-plugin.h
|
||||
+++ b/src/dns-manager/nm-dns-plugin.h
|
||||
@@ -111,6 +111,8 @@ GPid nm_dns_plugin_child_spawn (NMDnsPlugin *self,
|
||||
const char *pidfile,
|
||||
const char *kill_match);
|
||||
|
||||
+GPid nm_dns_plugin_child_pid (NMDnsPlugin *self);
|
||||
+
|
||||
gboolean nm_dns_plugin_child_kill (NMDnsPlugin *self);
|
||||
|
||||
#endif /* __NETWORKMANAGER_DNS_PLUGIN_H__ */
|
||||
--
|
||||
2.5.5
|
||||
|
|
@ -1,4 +1,10 @@
|
|||
# Enable connectivity checking for NetworkManager.
|
||||
# See `man NetworkManager.conf`.
|
||||
#
|
||||
# Note that connectivity checking works badly with rp_filter set to
|
||||
# strict. Check "/proc/sys/net/ipv4/conf/*/rp_filter".
|
||||
[connectivity]
|
||||
enabled=true
|
||||
uri=http://fedoraproject.org/static/hotspot.txt
|
||||
response=OK
|
||||
interval=300
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
# Enable connectivity checking for NetworkManager.
|
||||
# See `man NetworkManager.conf`.
|
||||
#
|
||||
# Note that connectivity checking works badly with rp_filter set to
|
||||
# strict. Check "/proc/sys/net/ipv4/conf/*/rp_filter".
|
||||
[connectivity]
|
||||
enabled=true
|
||||
uri=http://static.redhat.com/test/rhel-networkmanager.txt
|
||||
response=OK
|
||||
interval=300
|
|
@ -0,0 +1,15 @@
|
|||
# The Strict mode of RFC3704 Reverse Path filtering breaks some pretty
|
||||
# common and reasonable use cases.
|
||||
#
|
||||
# Notably, it makes it impossible for NetworkManager to do connectivity
|
||||
# check on a newly arriving default route (it starts with a higher metric
|
||||
# and is bumped lower if there's connectivity).
|
||||
#
|
||||
# Kernel's default is 0 (no filter), systemd configures a Loose filter since
|
||||
# commit 230450d4e4f1 ('sysctl.d: switch net.ipv4.conf.all.rp_filter from 1
|
||||
# to 2'). However, RHEL systemd package happens to default to Strict mode
|
||||
# for historic reasons. Let's override it if we're doing connectivity
|
||||
# checking.
|
||||
|
||||
# Source route verification
|
||||
net.ipv4.conf.all.rp_filter = 0
|
|
@ -2,24 +2,25 @@
|
|||
#
|
||||
# See "man 5 NetworkManager.conf" for details.
|
||||
#
|
||||
# The directory /usr/lib/NetworkManager/conf.d/ can contain additional configuration
|
||||
# snippets installed by packages. These files are read before NetworkManager.conf
|
||||
# and have thus lowest priority.
|
||||
# The directory /etc/NetworkManager/conf.d/ can contain additional configuration
|
||||
# snippets. Those snippets override the settings from this main file.
|
||||
# The directories /usr/lib/NetworkManager/conf.d/ and /run/NetworkManager/conf.d/
|
||||
# can contain additional .conf snippets installed by packages. These files are
|
||||
# read before NetworkManager.conf and have thus lowest priority.
|
||||
# The directory /etc/NetworkManager/conf.d/ can contain additional .conf
|
||||
# snippets. Those snippets are merged last and overwrite the settings from this main
|
||||
# file.
|
||||
#
|
||||
# The files within one conf.d/ directory are read in asciibetical order.
|
||||
#
|
||||
# If /etc/NetworkManager/conf.d/ contains a file with the same name as
|
||||
# /usr/lib/NetworkManager/conf.d/, the latter file is shadowed and thus ignored.
|
||||
# Hence, to disable loading a file from /usr/lib/NetworkManager/conf.d/ you can
|
||||
# put an empty file with the same name.
|
||||
# You can prevent loading a file /usr/lib/NetworkManager/conf.d/NAME.conf
|
||||
# by having a file NAME.conf in either /run/NetworkManager/conf.d/ or /etc/NetworkManager/conf.d/.
|
||||
# Likewise, snippets from /run can be prevented from loading by placing
|
||||
# a file with the same name in /etc/NetworkManager/conf.d/.
|
||||
#
|
||||
# If two files define the same key, the one that is read afterwards will overwrite
|
||||
# the previous one.
|
||||
|
||||
[main]
|
||||
#plugins=ifcfg-rh,ibft
|
||||
#plugins=keyfile,ifcfg-rh
|
||||
|
||||
|
||||
[logging]
|
||||
|
@ -27,8 +28,7 @@
|
|||
#
|
||||
# Logfiles contain no passwords and little sensitive information. But please
|
||||
# check before posting the file online. You can also personally hand over the
|
||||
# logfile to a NM developer to treat it confidential. Meet us on #nm on freenode.
|
||||
# Please post full logfiles except minimal modifications of private data.
|
||||
# logfile to a NM developer to treat it confidential. Meet us on #nm on Libera.Chat.
|
||||
#
|
||||
# You can also change the log-level at runtime via
|
||||
# $ nmcli general logging level TRACE domains ALL
|
||||
|
@ -39,5 +39,14 @@
|
|||
# You will find the logfiles in syslog, for example via
|
||||
# $ journalctl -u NetworkManager
|
||||
#
|
||||
# Please post full logfiles for bug reports without pre-filtering or truncation.
|
||||
# Also, for debugging the entire `journalctl` output can be interesting. Don't
|
||||
# limit unnecessarily with `journalctl -u`. Exceptions are if you are worried
|
||||
# about private data. Check before posting logfiles!
|
||||
#
|
||||
# Note that debug logging of NetworkManager can be quite verbose. Some messages
|
||||
# might be rate-limited by the logging daemon (see RateLimitIntervalSec, RateLimitBurst
|
||||
# in man journald.conf). Please disable rate-limiting before collecting debug logs!
|
||||
#
|
||||
#level=TRACE
|
||||
#domains=ALL
|
||||
|
|
1697
NetworkManager.spec
1697
NetworkManager.spec
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,31 @@
|
|||
NetworkManager stores new network profiles in keyfile format in the
|
||||
/etc/NetworkManager/system-connections/ directory.
|
||||
|
||||
Previously, NetworkManager stored network profiles in ifcfg format
|
||||
in this directory (/etc/sysconfig/network-scripts/). However, the ifcfg
|
||||
format is deprecated. By default, NetworkManager no longer creates
|
||||
new profiles in this format.
|
||||
|
||||
Connection profiles in keyfile format have many benefits. For example,
|
||||
this format is INI file-based and can easily be parsed and generated.
|
||||
|
||||
Each section in NetworkManager keyfiles corresponds to a NetworkManager
|
||||
setting name as described in the nm-settings(5) and nm-settings-keyfile(5)
|
||||
man pages. Each key-value-pair in a section is one of the properties
|
||||
listed in the settings specification of the man page.
|
||||
|
||||
If you still use network profiles in ifcfg format, consider migrating
|
||||
them to keyfile format. To migrate all profiles at once, enter:
|
||||
|
||||
# nmcli connection migrate
|
||||
|
||||
This command migrates all profiles from ifcfg format to keyfile
|
||||
format and stores them in /etc/NetworkManager/system-connections/.
|
||||
|
||||
Alternatively, to migrate only a specific profile, enter:
|
||||
|
||||
# nmcli connection migrate <profile_name|UUID|D-Bus_path>
|
||||
|
||||
For further details, see:
|
||||
* nm-settings-keyfile(5)
|
||||
* nmcli(1)
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
a922bf20c2243c9014fb14c4427ad035 NetworkManager-1.2.2.tar.xz
|
||||
SHA512 (NetworkManager-1.43.6.tar.xz) = e1d898d3e6154018defcf189bc017a962ed93b9f5d7bafd90642cd70f9bbd4885874b24f716d524e52cf9e44c7ba338e3c416e78bd7b6ec6eaa1cb5066244504
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
# Tests for NetworkManager
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
repositories:
|
||||
- repo: "https://github.com/NetworkManager/NetworkManager-ci"
|
||||
dest: "NetworkManager-ci"
|
||||
tests:
|
||||
- sanity-tests:
|
||||
dir: NetworkManager-ci
|
||||
run: run/osci/run-tests fedora28
|
Loading…
Reference in New Issue