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.
This commit is contained in:
Bastien Nocera 2014-05-19 17:55:47 +02:00
parent bb7af2eda0
commit ddc35609bd

View file

@ -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));