Re: [PATCH v4] ext4: wipe ext4_dir_entry2 upon file deletion

From: Artem S. Tashkinov
Date: Fri Jul 02 2021 - 09:29:57 EST


Hi,

I'm curious about the nature of this feature. Does it make restoring
accidentally deleted files more difficult or even impossible? OK, data
remains but the patch description makes it sound like all the metadata
is being wiped completely.

> Upon file deletion, zero out all fields in ext4_dir_entry2
> besides rec_len. In case sensitive data is stored in filenames,
> this ensures no potentially sensitive data is left in the directory
> entry upon deletion. Also, wipe these fields upon moving a directory
> entry during the conversion to an htree and when splitting htree
> nodes.

If it's the case, is it possible to make this new security feature user
configurable? I'm OK with it being on by default but I'd be glad if
there were a mount option to disable it.

Best regards,
Artem