Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nxagent: Filter ACPI events #1059

Open
Yetoo1 opened this issue May 31, 2023 · 7 comments
Open

nxagent: Filter ACPI events #1059

Yetoo1 opened this issue May 31, 2023 · 7 comments
Labels

Comments

@Yetoo1
Copy link

Yetoo1 commented May 31, 2023

I previously reported this issue downstream at x2goserver here https://bugs.x2go.org/cgi-bin/bugreport.cgi?bug=1600 but I am reporting it here because I believe it ultimately has to do with upstream nxagent. I would have tried building nx-libs and reporting if reproducing with an nxagent/nxproxy combo, but I can't seem to find examples to run nxagent/nxproxy and use the existing x server session to shadow so I am hopeful someone can provide a command line to help me reproduce the issue with latest upstream. The original bug report:

Package: x2goserver
Version: 4.1.0.3-5
Severity: Critical

I have x2goclient installed on local Fedora 37 machine and
x2goserver/x2godesktopsharing installed on remote Debian 11 and
(different) Fedora 37 machines. On the Fedora 37 local machine I
connected to the Fedora 37 remote machine in X2go/X11 Desktop Sharing
mode with fullscreen and press the power button on the local machine.
This causes the Fedora 37 remote machine to respond to the shutdown
command as configured and, in this instance, shutdown. I tested with a
Debian 11 remote machine with x2goserver/x2godesktopsharing installed
on it and it too responded to the shutdown acpi command. Both remote
machines have xfce4 desktop installed.

I expect the server to at least discard ACPI events and not depend on
a client to not send ACPI events. For thin client users expecting the
machine to be separate from the software in the remote connection this
increases chance of unintentional user error messing up data or even
malicious abuse.

Client packages:
x2goclient 4.1.2.2-7.f37
Package nx-libs 3.5.99.26-5.fc37
Package nxproxy 3.5.99.26-5.fc37

Debian 11 remote/Server packages:
x2goserver 4.1.0.3-5

Fedora 37 remote/Server packages:
x2goserver-4.1.0.3-19.fc37

@uli42 uli42 added the invalid label Apr 8, 2024
@uli42
Copy link
Member

uli42 commented Apr 8, 2024

All these events are handled outside nxagent, in the desktpp environment you are using. nxagent does not even know what ACPI is.

And as you are shadowing a session running on the server how should the session know it should not perform the shutdown if the user requests it? Fromt he server's perspective it is just a local desktop session.

Nevertheless there's nothing nxagent can do about it.

@Yetoo1
Copy link
Author

Yetoo1 commented Apr 19, 2024 via email

@uli42
Copy link
Member

uli42 commented Apr 19, 2024 via email

@Yetoo1
Copy link
Author

Yetoo1 commented Apr 22, 2024

@uli42 So when I have x2goclient focused on the client machine and I press power button what message is being passed to the server for the server to think that the power button is pressed? I don't have a test environment to run xtrace at the moment.

@uli42
Copy link
Member

uli42 commented Apr 22, 2024 via email

@Yetoo1
Copy link
Author

Yetoo1 commented Apr 23, 2024 via email

@uli42
Copy link
Member

uli42 commented Apr 23, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants