Sfoglia il codice sorgente

Allow to change "AcceptPointerEvents" via "vncconfig -set".



git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5015 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.2.90
Adam Tkac 11 anni fa
parent
commit
04628cde56
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      unix/xserver/hw/vnc/vncExtInit.cc

+ 2
- 1
unix/xserver/hw/vnc/vncExtInit.cc Vedi File

@@ -591,11 +591,12 @@ static int ProcVncExtSetParam(ClientPtr client)
value1 = desktop1->getValueStr();

/*
* Allow to change only clipboard parameters and desktop name.
* Allow to change only certain parameters.
* Changing other parameters (for example PAM service name)
* could have negative security impact.
*/
if (strncasecmp(param.buf, "desktop", 7) != 0 &&
strncasecmp(param.buf, "AcceptPointerEvents", 19) != 0 &&
(noclipboard || strncasecmp(param.buf, "SendCutText", 11) != 0) &&
(noclipboard || strncasecmp(param.buf, "AcceptCutText", 13) != 0))
goto deny;

Loading…
Annulla
Salva