From 7597f8d42b236c99d175a02cea7e76593e16b886 Mon Sep 17 00:00:00 2001 From: Carlos Santos Date: Wed, 29 Nov 2023 18:52:52 -0300 Subject: vncconfig: add option to force view-only remote client connections Specifies that the server must ignore all keyboard or mouse events sent by the client. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2180903 Signed-off-by: Carlos Santos --- common/rfb/VNCServerST.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/rfb/VNCServerST.h') diff --git a/common/rfb/VNCServerST.h b/common/rfb/VNCServerST.h index 4a8efa46..d303831e 100644 --- a/common/rfb/VNCServerST.h +++ b/common/rfb/VNCServerST.h @@ -56,7 +56,8 @@ namespace rfb { // addSocket // Causes the server to allocate an RFB-protocol management // structure for the socket & initialise it. - virtual void addSocket(network::Socket* sock, bool outgoing=false); + virtual void addSocket(network::Socket* sock, bool outgoing=false, + AccessRights ar=AccessDefault); // removeSocket // Clean up any resources associated with the Socket -- cgit v1.2.3