[gnome-control-center/gnome-3-12] network: Hide the Virtualisation bridge
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-12] network: Hide the Virtualisation bridge
- Date: Mon, 19 May 2014 16:15:04 +0000 (UTC)
commit 6b27c20312ec078b65005467f92ca4b77740f9e2
Author: Bastien Nocera <hadess hadess net>
Date: Mon May 19 17:55:47 2014 +0200
network: Hide the Virtualisation bridge
There's no need for anyone to poke at the libvirt bridge that's not an
admin. It should probably be locked down more as well, but that would be
NetworkManager's business.
panels/network/cc-network-panel.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index caaf1a3..8b43da2 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -1224,6 +1224,12 @@ add_connection (CcNetworkPanel *panel,
if (g_strcmp0 (type, "vpn") != 0 && iface == NULL)
return;
+#ifdef HAVE_NM_UNSTABLE
+ /* Don't add the libvirtd bridge to the UI */
+ if (g_strcmp0 (nm_setting_connection_get_interface_name (s_con), "virbr0") == 0)
+ return;
+#endif
+
g_debug ("add %s/%s remote connection: %s",
type, g_type_name_from_instance ((GTypeInstance*)connection),
nm_connection_get_path (connection));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]