summaryrefslogtreecommitdiff
path: root/image/sanitize.h
diff options
context:
space:
mode:
Diffstat (limited to 'image/sanitize.h')
-rw-r--r--image/sanitize.h14
1 files changed, 14 insertions, 0 deletions
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