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:
parent
bb7af2eda0
commit
ddc35609bd
1 changed files with 6 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue