chiark / gitweb /
update: add stricter checking when updating repo index using rsync
authorHans-Christoph Steiner <hans@eds.org>
Thu, 5 Jun 2014 19:50:21 +0000 (15:50 -0400)
committerHans-Christoph Steiner <hans@eds.org>
Thu, 5 Jun 2014 19:50:21 +0000 (15:50 -0400)
commit0adb2575fe42cc4e65b4dec20a9edfe270266164
tree1accbacccee58b429aba68a77d6551caf1ea12fe
parentb86bfb94fb0304d69aa505133d48f2fb6d795732
update: add stricter checking when updating repo index using rsync

rsync uses the modification time and size of the file when deciding whether
to update a file.  These are relatively easy to control in malicious code,
so instead make rsync use a full MD5 checksum when decided whether the
index needs to be updated.  I suppose we could add an option to use
checksum checking on all files, but since the signed repo already provides
a checksum check, it seems not worth the added load on the process.

Also, renamed 'index' to 'indexxml' to make it clear what is the XML and
what is the JAR.
fdroidserver/server.py