Issue 360: Anonymize image files

Submitted by Harshavardhan Unnibhavi on June 30, 2019, 7:53 a.m.

Details

Reviewer None
Submitted June 30, 2019, 7:53 a.m.
Last Updated Sept. 20, 2019, 8:42 p.m.
Revision 2

Cover Letter

Hi,

This patch series is the first step towards anonymizing image files for
publication. The image files may contain sensitive information that
needs to be removed.

This series has three important changes:

1. Add a new "anonymize" option.
2. Anonymize file path by replacing them with their sha1 hash values.
3. Restore anonymized images containing file paths anonymized.

Best,
Harsha

Harshavardhan Unnibhavi (3):
  crit: Add anonymize option.
  crit: Anonymize file paths in files.img
  criu: Restore anonymized images(file paths)

 criu/config.c             |  5 +++
 criu/cr-restore.c         |  5 +++
 criu/files-reg.c          | 12 +++++--
 criu/files.c              |  4 +--
 criu/include/cr_options.h |  1 +
 criu/include/restorer.h   |  1 +
 criu/pie/restorer.c       |  4 +--
 lib/py/anonymize.py       | 75 +++++++++++++++++++++++++++++++++++++++
 lib/py/cli.py             | 42 ++++++++++++++++++++++
 9 files changed, 143 insertions(+), 6 deletions(-)
 create mode 100644 lib/py/anonymize.py
  

Revisions

Patches download mbox

Tests

Patches download mbox

Tests