Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

shred: implement and test feature --random-source #7948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
Loading
from

Conversation

BenWiederhake
Copy link
Collaborator

Fixes issue #5711.

This PR introduces the --random-source feature, and implements it faithfully: Copy the data from the source into the file-to-be-shredded. Note that the "random" data is not modified in any way. This is good, because no deterministic transformation can ever increase the entropy in random data; and it also makes it much simpler to verify that shred uses the specified source.

Note that the second of the two new tests is broken because the functionality was always broken, but only now becomes more visible. See #7947.

Note that this PR is not yet sufficient to pass shred-passes.log. A future PR will have to adjust the test in order to accept our implementation.

Note a final distinction: The GNU implementation also takes the "shuffled" order of passes from the random source (making it truly deterministic when --random-source is provided). However, since we don't case about determinism (only the ability to provide a different source of entropy), I don't think we should follow GNU behavior here. What do you think?

Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@BenWiederhake
Copy link
Collaborator Author

CI seems to fail due to an unrelated issues, looks like it might be fixed by #7945 and #7941.

@sylvestre
Copy link
Contributor

About the gnu test, looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.