"System policy prevents Wi-Fi scans" is back!

For a while the message went away when using vncserver. Now in Fedora 36, with whatever today’s latest packages are, it’s back, and this time I can’t get rid of it by typing the root password over and over. This is an evil interaction between KDE, tigervnc 1.12.0-6, and NetworkManager.

Any anyone worked through this? I would hate to go back to removing NetworkManager.

I can workaround not being able to use the NetworkManager widgets (by using nmcli), but an equally annoying side effect is that even when I don’t have to make changes, the NetworkManager widgets in KDE wake up periodically and spin, which causes plasmashell to go beserk and use 200+% CPU. (That bug has been around since 2015 or so.)

Any ideas how to fix?

W

I do not know if you talk about SELinux messages?

If yes you might have to give this a try:
DNF System Upgrade :: Fedora Docs

There’s a workaround by creating a polkit rule here, xRDP – Cannot connect to WiFi Networks in xRDP session – System policy prevents WiFi scans. How to Fix it ! – Griffon's IT Library that looks similiar to this issue.

You should probably also check (before/after the workaround) pkaction --verbose --action-id org.freedesktop.NetworkManager.wifi.scan

ref: polkit: polkit Reference Manual