Open
Conversation
This patch is based on the source of shred from coreutils by Colin Plumb.
While shred is now licensed under GPLv3, the parts of this patch that were
derived from shred could easily be changed to a version of shred
(git commit cad884a) that was licensed under GPLv2 or later.
Note that this patch only keeps the filename from being readable in the
filesystem structure. For journaling fileystems, such as ext{3,4}, the
filename is still retained in the journal.
Author
|
ping? |
|
Should we assume that wipe is dead from the PoV of upstream? (Having my Debian package maintainer hat on.) |
Use WIPE_GIT instead of TEST as version again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch is based on the source of shred from coreutils by Colin Plumb.
While shred is now licensed under GPLv3, the parts of this patch that were
derived from shred could easily be changed to a version of shred
(git commit cad884a) that was licensed under GPLv2 or later.
Note that this patch only keeps the filename from being readable in the
filesystem structure. For journaling fileystems, such as ext{3,4}, the
filename is still retained in the journal.
Testcase:
$ dd if=/dev/zero bs=1M count=256 of=wipeimagefile-ext2.bin;
$ losetup /dev/loop2 wipeimagefile-ext2.bin;
$ mkfs.ext2 /dev/loop2;
$ mkdir /mnt/wipetest;
$ mount /dev/loop2 /mnt/wipetest;
$ echo "very secret data that should be deleted after use" > /mnt/wipetest/secretfile.txt;
$ wipe -fc /mnt/wipetest/secretfile.txt;
$ umount /mnt/wipetest;
$ losetup -d /dev/loop2;
$ rmdir /mnt/wipetest;
$ fls wipeimagefile-ext2.bin
wipeimagefile-ext2.bin
d/d 11: lost+found
r/- * 0: secretfile.txt
r/- * 0: 4hv06IB9SyTgVt
d/d 2561: $OrphanFiles
This change is