Commit 6c09127
ext4: wipe ext4_dir_entry2 upon file deletion
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.
The data wiped may still exist in the journal, but there are future
commits planned to address this.
Signed-off-by: Leah Rumancik <leah.rumancik@gmail.com>
Link: https://lore.kernel.org/r/20210422180834.2242353-1-leah.rumancik@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 5899593 commit 6c09127
1 file changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1854 | 1854 | | |
1855 | 1855 | | |
1856 | 1856 | | |
| 1857 | + | |
| 1858 | + | |
1857 | 1859 | | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
| 1863 | + | |
| 1864 | + | |
1858 | 1865 | | |
1859 | 1866 | | |
1860 | 1867 | | |
| |||
2188 | 2195 | | |
2189 | 2196 | | |
2190 | 2197 | | |
| 2198 | + | |
2191 | 2199 | | |
2192 | 2200 | | |
2193 | 2201 | | |
| |||
2577 | 2585 | | |
2578 | 2586 | | |
2579 | 2587 | | |
2580 | | - | |
| 2588 | + | |
2581 | 2589 | | |
2582 | 2590 | | |
2583 | 2591 | | |
2584 | 2592 | | |
2585 | 2593 | | |
2586 | 2594 | | |
2587 | | - | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
| 2599 | + | |
| 2600 | + | |
2588 | 2601 | | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
2589 | 2609 | | |
2590 | 2610 | | |
2591 | 2611 | | |
| |||
0 commit comments