[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Changed in: gnome-control-center Status: Unknown => Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
While the fix here is correct, the assumptions in this issue are wrong. I wrote an explanation of this issue in https://bugs.launchpad.net/ubuntu/+source/gnome-remote- desktop/+bug/1970039/comments/7. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
This bug was fixed in the package gnome-control-center - 1:41.4-1ubuntu13 --- gnome-control-center (1:41.4-1ubuntu13) jammy; urgency=medium * Add patch to fix RDP Sharing on switch (LP: #1969619) -- Jeremy Bicha Wed, 20 Apr 2022 15:02:15 -0400 ** Changed in: gnome-control-center (Ubuntu Jammy) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
As agreed previously, releasing this early and through the -security pocket as well. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Tags added: verification-done verification-done-jammy -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Changed in: gnome-control-center (Ubuntu Jammy) Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Changed in: ubuntu-release-notes Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
Hi, yes, from the Ubuntu Security team's perspective, this should go to the security pocket. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Also affects: ubuntu-release-notes Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
Łukasz, Yes, just opening the Sharing panel with gnome-control-center 1:41.4-1ubuntu12 is enough to attempt to start the RDP service. systemctl --user status gnome-remote-desktop reports this error: RDP TLS certificate and key not configured properly I didn't check open ports but it makes sense that it would open the RDP port even though the RDP service isn't completely working. ** Description changed: - Summary - === - 1. From the Ubuntu 22.04 live session (or a clean install), Open the Settings app. - 2. Open the Sharing page. It looks like Remote Desktop sharing is turned on. + Impact + == + 1. It looks like RDP Sharing is turned on but it is not. + 2. To actually turn on RDP Sharing, you would need to turn it off then turn it on. - On further investigation, it is not actually on. + This bugfix fixes it so that it correctly shown as off by default and + turning it on works. - More details + Test Case + = + 0. Start with a clean Ubuntu 22.04 install. + Or you can create a new user and log in as the new user. + 1. Open the Settings app. + 2. In the left sidebar, click Sharing. The switch at the top of the page needs to be off. + 3. Turn the switch on. Then click Remote Desktop and turn it on. + 4. Close the Settings app. + 5. Open the Settings app and verify that Sharing is on and Remote Desktop is on. + 6. Close the Settings app. + 7. From a terminal, run + systemctl --user status gnome-remote-sharing.service + + It should show the service as active (running) and + a line at the bottom should say RDP server started + 8. Then run + systemctl --user stop gnome-remote-sharing.service + 9. Open the Settings app. It should show that Remote Desktop sharing is off. + 10. Turn on Sharing and turn on Remote Desktop sharing. + 11. Run + systemctl --user status gnome-remote-sharing.service + + It should show the service as active (running) and + a line at the bottom should say RDP server started + + What Could Go Wrong + === + This is a minimal fix proposed upstream. + The original implementation was insufficient. + The bugfix will allow Remote Desktop to be turned on and work correctly from the beginning. + + More Details - This issue affects both the live session and the initial install. (Probably would show up for any new user.) - - 1. Before opening the Settings app, the gnome-remote-desktop service is - running. I think this is expected. - - $ systemctl status --user gnome-remote-desktop.service - \u25cf gnome-remote-desktop.service - GNOME Remote Desktop - Loaded: loaded (/usr/lib/systemd/user/gnome-remote-desktop.service; enable> - Active: active (running) since Wed 2022-04-20 08:07:44 EDT; 17s ago - Main PID: 1611 (gnome-remote-de) - Tasks: 4 (limit: 4603) - Memory: 13.8M - CPU: 66ms - CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/gnome-remo> - \u2514\u25001611 /usr/libexec/gnome-remote-desktop-daemon - - Apr 20 08:07:44 ubuntu2204 systemd[1483]: Starting GNOME Remote Desktop... - Apr 20 08:07:44 ubuntu2204 gnome-remote-desktop-daemon[1611]: libEGL warning: pci id for fd 9: 1b36:0100, driver (null) - Apr 20 08:07:44 ubuntu2204 systemd[1483]: Started GNOME Remote Desktop. - - Also, the RDP enable gsettings key is turned off. - - $ gsettings get org.gnome.desktop.remote-desktop.rdp enable - false - - 2. When I open the Sharing page, the gsettings key turns to true - - and systemctl shows me an error where it tried to enable RDP: - Apr 20 08:12:50 ubuntu2204 gnome-remote-de[1611]: RDP TLS certificate and key not configured properly - - 3. So then I open Remote Desktop Sharing and turn it off then on and - then systemctl shows me that is working correctly. - - Apr 20 08:14:32 ubuntu2204 systemd[1483]: Starting GNOME Remote Desktop... - Apr 20 08:14:32 ubuntu2204 gnome-remote-desktop-daemon[2801]: libEGL warning: p> - Apr 20 08:14:32 ubuntu2204 systemd[1483]: Started GNOME Remote Desktop. - Apr 20 08:14:32 ubuntu2204 gnome-remote-de[2801]: RDP server started - - Note in particular the final line: "RDP server started". That tells us - whether RDP is running or not. There would be a similar line for VNC. - This line didn't show in the initial state in step 1. - - What should happen - == - Remote Desktop should show off by default and should not attempt to turn on just by opening the Sharing page. - - There is no gsettings for the Sharing master on/off switch (in the - headerbar). It shows as On if any of the services are On. None of the - services should be On by default so this should show Off by default. - - A Bug Trigger - = - It looks like this bug was triggered by - https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/commit/7f4ef31fd3 - - I have reported this issue to GNOME. That patch fixes an important issue - so maybe we need to keep that patch but fix the logic in gnome-control- - center. + To simplify this bug report, I
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Changed in: gnome-control-center (Ubuntu Jammy) Status: Triaged => In Progress -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
I think this is a bit more nefarious. On an installed system, all you have to do to have port 3389/tcp suddenly open is to *visit* the "share" tab in the settings. No need to change a thing, just visit it, then close the window. Boom, you have rdp desktop sharing running. At least it's a random password (I think: it's not the local account password). -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Changed in: gnome-control-center (Ubuntu Jammy) Milestone: None => ubuntu-22.04.1 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
Thank you for filling in the bug! So from what I understand here, this means that sharing is disabled until someone opens the sharing screen in the gnome-control-center, right? I agree with the 'High' priority here in that case, but it's certainly not a 22.04 release blocker - however, the fix for that should be prepared ASAP and uploaded as a 0-day SRU, if possible. Actually, I even think maybe it should go through the security pocket, as at least to me this seems like a violation of our security policies by enabling RDP without the users knowledge. This way all the users would get this update as well via unattended updates. Could we get some input from the security team? What do you think? -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** No longer affects: gnome-remote-desktop (Ubuntu) ** Project changed: gnome-remote-desktop => gnome-control-center ** No longer affects: gnome-remote-desktop (Ubuntu Jammy) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Bug watch added: gitlab.gnome.org/GNOME/gnome-remote-desktop/-/issues #94 https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/issues/94 ** Also affects: gnome-control-center via https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/issues/94 Importance: Unknown Status: Unknown ** Also affects: gnome-remote-desktop (Ubuntu) Importance: Undecided Status: New ** Changed in: gnome-remote-desktop (Ubuntu Jammy) Status: New => Triaged ** Changed in: gnome-remote-desktop (Ubuntu Jammy) Importance: Undecided => High ** Project changed: gnome-control-center => gnome-remote-desktop ** Description changed: Summary === 1. From the Ubuntu 22.04 live session (or a clean install), Open the Settings app. 2. Open the Sharing page. It looks like Remote Desktop sharing is turned on. On further investigation, it is not actually on. More details This issue affects both the live session and the initial install. (Probably would show up for any new user.) 1. Before opening the Settings app, the gnome-remote-desktop service is running. I think this is expected. $ systemctl status --user gnome-remote-desktop.service \u25cf gnome-remote-desktop.service - GNOME Remote Desktop Loaded: loaded (/usr/lib/systemd/user/gnome-remote-desktop.service; enable> Active: active (running) since Wed 2022-04-20 08:07:44 EDT; 17s ago Main PID: 1611 (gnome-remote-de) Tasks: 4 (limit: 4603) Memory: 13.8M CPU: 66ms CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/gnome-remo> \u2514\u25001611 /usr/libexec/gnome-remote-desktop-daemon Apr 20 08:07:44 ubuntu2204 systemd[1483]: Starting GNOME Remote Desktop... Apr 20 08:07:44 ubuntu2204 gnome-remote-desktop-daemon[1611]: libEGL warning: pci id for fd 9: 1b36:0100, driver (null) Apr 20 08:07:44 ubuntu2204 systemd[1483]: Started GNOME Remote Desktop. Also, the RDP enable gsettings key is turned off. $ gsettings get org.gnome.desktop.remote-desktop.rdp enable false 2. When I open the Sharing page, the gsettings key turns to true and systemctl shows me an error where it tried to enable RDP: Apr 20 08:12:50 ubuntu2204 gnome-remote-de[1611]: RDP TLS certificate and key not configured properly 3. So then I open Remote Desktop Sharing and turn it off then on and then systemctl shows me that is working correctly. Apr 20 08:14:32 ubuntu2204 systemd[1483]: Starting GNOME Remote Desktop... Apr 20 08:14:32 ubuntu2204 gnome-remote-desktop-daemon[2801]: libEGL warning: p> Apr 20 08:14:32 ubuntu2204 systemd[1483]: Started GNOME Remote Desktop. Apr 20 08:14:32 ubuntu2204 gnome-remote-de[2801]: RDP server started Note in particular the final line: "RDP server started". That tells us whether RDP is running or not. There would be a similar line for VNC. This line didn't show in the initial state in step 1. What should happen == Remote Desktop should show off by default and should not attempt to turn on just by opening the Sharing page. There is no gsettings for the Sharing master on/off switch (in the headerbar). It shows as On if any of the services are On. None of the services should be On by default so this should show Off by default. - Guesses and Further Investigation Needed - == - I think there may have been a logic bug when the RDP sharings were backported from gnome-control-center 42. This code was originally in gtk4 so some rewriting was necessary. + A Bug Trigger + = + It looks like this bug was triggered by + https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/commit/7f4ef31fd3 - I didn't see this issue in a Fedora 36 Beta instance. Sharing showed off - by default. - - Also, we did add this patch: - https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/commit/7f4ef31fd3 - I think that patch is necessary but maybe that changed what gnome-control-center was expecting to see. + I have reported this issue to GNOME. That patch fixes an important issue + so maybe we need to keep that patch but fix the logic in gnome-control- + center. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/gnome-remote-desktop/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 1969619] Re: RDP Sharing appears on by default in jammy
** Description changed: Summary === 1. From the Ubuntu 22.04 live session (or a clean install), Open the Settings app. 2. Open the Sharing page. It looks like Remote Desktop sharing is turned on. On further investigation, it is not actually on. More details This issue affects both the live session and the initial install. (Probably would show up for any new user.) 1. Before opening the Settings app, the gnome-remote-desktop service is running. I think this is expected. $ systemctl status --user gnome-remote-desktop.service \u25cf gnome-remote-desktop.service - GNOME Remote Desktop Loaded: loaded (/usr/lib/systemd/user/gnome-remote-desktop.service; enable> Active: active (running) since Wed 2022-04-20 08:07:44 EDT; 17s ago Main PID: 1611 (gnome-remote-de) Tasks: 4 (limit: 4603) Memory: 13.8M CPU: 66ms CGroup: /user.slice/user-1000.slice/user@1000.service/app.slice/gnome-remo> \u2514\u25001611 /usr/libexec/gnome-remote-desktop-daemon Apr 20 08:07:44 ubuntu2204 systemd[1483]: Starting GNOME Remote Desktop... Apr 20 08:07:44 ubuntu2204 gnome-remote-desktop-daemon[1611]: libEGL warning: pci id for fd 9: 1b36:0100, driver (null) Apr 20 08:07:44 ubuntu2204 systemd[1483]: Started GNOME Remote Desktop. Also, the RDP enable gsettings key is turned off. $ gsettings get org.gnome.desktop.remote-desktop.rdp enable false 2. When I open the Sharing page, the gsettings key turns to true and systemctl shows me an error where it tried to enable RDP: Apr 20 08:12:50 ubuntu2204 gnome-remote-de[1611]: RDP TLS certificate and key not configured properly 3. So then I open Remote Desktop Sharing and turn it off then on and then systemctl shows me that is working correctly. Apr 20 08:14:32 ubuntu2204 systemd[1483]: Starting GNOME Remote Desktop... Apr 20 08:14:32 ubuntu2204 gnome-remote-desktop-daemon[2801]: libEGL warning: p> Apr 20 08:14:32 ubuntu2204 systemd[1483]: Started GNOME Remote Desktop. Apr 20 08:14:32 ubuntu2204 gnome-remote-de[2801]: RDP server started Note in particular the final line: "RDP server started". That tells us whether RDP is running or not. There would be a similar line for VNC. This line didn't show in the initial state in step 1. What should happen == - The Sharing master witch should be off by default. + Remote Desktop should show off by default and should not attempt to turn on just by opening the Sharing page. - Remote Desktop should show off by default and should not attempt to turn - on just by opening the Sharing page. + There is no gsettings for the Sharing master on/off switch (in the + headerbar). It shows as On if any of the services are On. None of the + services should be On by default so this should show Off by default. Guesses and Further Investigation Needed == - Is there a gsettings key for the master sharing on/off switch? - - I think there may have been a logic bug when the RDP sharings were - backported from gnome-control-center 42. This code was originally in - gtk4 so some rewriting was necessary. + I think there may have been a logic bug when the RDP sharings were backported from gnome-control-center 42. This code was originally in gtk4 so some rewriting was necessary. I didn't see this issue in a Fedora 36 Beta instance. Sharing showed off by default. Also, we did add this patch: https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/commit/7f4ef31fd3 I think that patch is necessary but maybe that changed what gnome-control-center was expecting to see. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-control-center in Ubuntu. https://bugs.launchpad.net/bugs/1969619 Title: RDP Sharing appears on by default in jammy To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/1969619/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs