(CVE-2022-1736) Turning Remote Desktop off doesn't fully disable it
Test Case
- Open gnome-control-center to the Sharing page.
- Turn on Sharing. Turn on Remote Desktop.
- Turn off Remote Desktop.
- From a terminal, run this command:
gsettings get org.gnome.desktop.remote-desktop.rdp enable
It should return false
but it returns true
with gnome-control-center 42.1
Other Info
This was found while investigating an issue in Ubuntu and Debian. Currently, on Debian Testing and Ubuntu 22.04 LTS, the gnome-remote-desktop user service is almost always running. If it's running and the RDP gsettings key is set to true, then the RDP service is enabled. This means that once RDP sharing is enabled in Ubuntu or Debian, it is impossible to use the Settings app to turn it off.
cc/ @pnowack