status/network: Don't show OWE networks as secure

The OWE protocol is used by public networks to provide some
form of encryption, but without authentication. That makes
them more secure than unencrypted public networks, but still
significantly less secure than "proper" encryption types like
WPA.

The are not shown as secure by Settings' network panel, so we
shouldn't do so either.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6918

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2927>
This commit is contained in:
Florian Müllner 2023-08-29 19:09:21 +02:00 committed by Marge Bot
parent 3c6c8a40ae
commit 3a393738ea

View File

@ -811,7 +811,10 @@ const WirelessNetwork = GObject.registerClass({
}
get secure() {
return this._securityType !== NM.UtilsSecurityType.NONE;
return this._securityType !== NM.UtilsSecurityType.NONE &&
this._securityType !== NM.UtilsSecurityType.UNKOWN &&
this._securityType !== NM.UtilsSecurityType.OWE &&
this._securityType !== NM.UtilsSecurityType.OWE_TM;
}
get is_active() {