chiark / gitweb /
scanner: use a blacklist instead of a whitelist
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 17 Sep 2015 00:20:22 +0000 (17:20 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 17 Sep 2015 00:23:34 +0000 (17:23 -0700)
commitd7d9e38ef72a5328cbb5ca490b34a3ebd9b36d5a
tree4ea09f177cf3a4b9ceb00a80d7a72f6ba053c537
parentfeaf3d04e54168c51e4836f80e68335f1ba013b1
scanner: use a blacklist instead of a whitelist

This is much closer to what we did before with mimetypes. Using a whitelist
turns out to be a bad idea since repositories seem to be randomly filled with
executable images and documents, which trigger the scanner.

In an ideal world the scanner would complain about all of those. For now, just
warn about the possibility of them being hidden binaries.
fdroidserver/scanner.py