xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Changes between Initial Version and Version 1 of Ticket #274, comment 3


Ignore:
Timestamp:
02/28/13 16:35:09 (9 years ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #274, comment 3

    initial v1  
    1717This is just an example, but it shows how trivial it would be to pattern match the keyboard data and discard data.
    1818It only filters on the way out, but I don't think we really care about the way in: if you connect to a malicious server, surely you have bigger problems?
    19 We'll need to check every possible (..) clipboard transfer to make sure that data isn't transferred using some other encoding which would defeat the
     19We'll need to check every possible (..) clipboard transfer to make sure that data isn't transferred using some other encoding which would defeat the filter. Does it work with "utf8" and "latin1", what about other encodings?
    2020
    2121Now, I'm not sure how we can make this customizable by the user, maybe:
     
    2424}}}
    2525With a list of regular expressions stored in this file? And maybe we could ship a default file too, maybe in {{{/etc/xpra/clipboard-filter.re}}}
     26
     27Or maybe we want to have different actions (one per file, or specified for each regex): drop (just harmless stuff that we want to ignore), alert (dangerous stuff that we want to warn about), ..
     28
     29The python regular expression module is documented [http://docs.python.org/2/library/re.html here] and supports all standard regex constructs.