[gnome-control-center] network: Hide the Virtualisation bridge
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Hide the Virtualisation bridge
- Date: Mon, 19 May 2014 15:56:58 +0000 (UTC)
commit ddc35609bd321dfb82ebb62af719f2e8fac16210
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 0031a0a..0b1942e 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -1233,6 +1233,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]