From 6e43cc2e97aee62dec65c073143e38f3f8cafae8 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Fri, 20 Oct 2017 01:01:43 +0200 Subject: btrfs-progs: image: introduce symbolic names for the sanitization modes Signed-off-by: David Sterba --- image/sanitize.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'image/sanitize.h') diff --git a/image/sanitize.h b/image/sanitize.h index b979f813..fa7db517 100644 --- a/image/sanitize.h +++ b/image/sanitize.h @@ -27,4 +27,18 @@ struct name { u32 len; }; +/* + * Filenames and xattrs can be obfuscated so they don't appear in the image + * dump. In basic mode (NAMES) a random string will be generated but such names + * do not match the direntry hashes. The advanced mode (COLLISIONS) tries to + * generate names that appear random but also match the hashes. This however + * may take significantly more time than the basic mode. And may not even + * succeed. + */ +enum sanitize_mode { + SANITIZE_NONE, + SANITIZE_NAMES, + SANITIZE_COLLISIONS +}; + #endif -- cgit v1.2.3