diff options
author | Michal Srb <michalsrb@gmail.com> | 2014-11-24 13:18:28 +0200 |
---|---|---|
committer | Michal Srb <michalsrb@gmail.com> | 2014-11-24 13:18:28 +0200 |
commit | b318b8f978a6f6b99578ec39a5dbd9b7dc860505 (patch) | |
tree | 9a7e46fbe84718791544010137186ff70648e4d8 /common/rfb/SConnection.cxx | |
parent | 270a31cf172a5ea15061ae4bffdad5780e4014ad (diff) | |
download | tigervnc-b318b8f978a6f6b99578ec39a5dbd9b7dc860505.tar.gz tigervnc-b318b8f978a6f6b99578ec39a5dbd9b7dc860505.zip |
Add AccessSetDesktopSize right.
So clients with limited access rights can not affect it.
Diffstat (limited to 'common/rfb/SConnection.cxx')
-rw-r--r-- | common/rfb/SConnection.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
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_) |