News: 0001250194

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

EXT4 With Linux 5.13 Looks Like It Will Support Casefolding With Encryption Enabled

([Linux Storage] 13 Minutes Ago EXT4 Casefolding + Encryption)


While EXT4 supports both case-folding for optional case insensitive filenames and does support file-system encryption, at the moment those features are mutually exclusive. But it looks like the upcoming Linux 5.13 kernel will allow casefolding and encryption to be active at the same time.

Queued this week into the EXT4 file-system's "dev" tree was [1]ext4: handle casefolding with encryption .

That work allows for encryption to happen with casefolding. Google's Daniel Rosenberg who worked on the change explained, " Since the name on disk is case preserving, and also encrypted, we can no longer just recompute the hash on the fly. Additionally, to avoid leaking extra information from the hash of the unencrypted name, we use siphash via an fscrypt v2 policy. The hash is stored at the end of the directory entry for all entries inside of an encrypted and casefolded directory apart from those that deal with '.' and '..'. This way, the change is backwards compatible with existing ext4 filesystems. "

Earlier this year the FSCRYPT file-system encryption framework was [2]working on casefolding integration . The F2FS file-system has supported case-folding and encryption together [3]since Linux 5.11 . EXT4's turn looks to be with Linux 5.13.



[1] https://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git/commit/?h=dev&id=471fbbea7ff7061b2d6474665cb5a2ceb4fd6500

[2] https://www.phoronix.com/scan.php?page=news_item&px=FSCRYPT-Casefolding-Support

[3] https://www.phoronix.com/scan.php?page=news_item&px=F2FS-Casefolding-With-Encrypt

phoronix

Don't steal; thou'lt never thus compete successfully in business. Cheat.
-- Ambrose Bierce