From b318b8f978a6f6b99578ec39a5dbd9b7dc860505 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Mon, 24 Nov 2014 13:18:28 +0200 Subject: Add AccessSetDesktopSize right. So clients with limited access rights can not affect it. --- common/rfb/SConnection.cxx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'common/rfb/SConnection.cxx') diff --git a/common/rfb/SConnection.cxx b/common/rfb/SConnection.cxx index 4bf0f932..20182a07 100644 --- a/common/rfb/SConnection.cxx +++ b/common/rfb/SConnection.cxx @@ -37,13 +37,14 @@ using namespace rfb; static LogWriter vlog("SConnection"); // AccessRights values -const SConnection::AccessRights SConnection::AccessView = 0x0001; -const SConnection::AccessRights SConnection::AccessKeyEvents = 0x0002; -const SConnection::AccessRights SConnection::AccessPtrEvents = 0x0004; -const SConnection::AccessRights SConnection::AccessCutText = 0x0008; -const SConnection::AccessRights SConnection::AccessDefault = 0x03ff; -const SConnection::AccessRights SConnection::AccessNoQuery = 0x0400; -const SConnection::AccessRights SConnection::AccessFull = 0xffff; +const SConnection::AccessRights SConnection::AccessView = 0x0001; +const SConnection::AccessRights SConnection::AccessKeyEvents = 0x0002; +const SConnection::AccessRights SConnection::AccessPtrEvents = 0x0004; +const SConnection::AccessRights SConnection::AccessCutText = 0x0008; +const SConnection::AccessRights SConnection::AccessSetDesktopSize = 0x0010; +const SConnection::AccessRights SConnection::AccessDefault = 0x03ff; +const SConnection::AccessRights SConnection::AccessNoQuery = 0x0400; +const SConnection::AccessRights SConnection::AccessFull = 0xffff; SConnection::SConnection(bool reverseConnection_) -- cgit v1.2.3