I'm searching for any kernel-level mechanism that is pass-through and will change file hashes by either encrypting file contents or appending data. The most obvious solution is encryption, but I can't find any appropriate (e.g. fully kernel-only, no ecryptfs, nothing FUSE powered, etc) encryption methods.
Specifically, I have a large number of files in /foo
that I would like to also appear in /foobar
in any manner that obfuscates the original MD5 of the files, without duplicating the raw data. I'm not concerned if the files in /foobar
are rendered useless by additions--I'm happy to append a few random bytes to each file and let that break many of file formats, but I don't know how to do this with some sort of bind mount