-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
ZFS Encryption #4329
Closed
Closed
ZFS Encryption #4329
Changes from 2 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
89b4e7a
Native data and metadata encryption for zfs
2f7c9cb
added assert for sync-to-convergence, small man page fixes, removed Z…
2b76179
fix for small race condition in arc.c that would occasionally trigger…
64fb3ce
reworked dataset holding / owning to work with flags
4cb9b5c
further cleanups for dataset owning code
18e6757
fixed dsl key leak introduced with new dataset holding code
891583e
style and licensing updates
71434a2
several one-line fixes and name cleanups
39b0a11
first attempt at splitting keysource into keyformat and keylocation. …
4dc6b7f
split "zfs key" command into subcommands. fixed tests to work with ne…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,7 @@ object_from_path(const char *dataset, const char *path, struct stat64 *statbuf, | |
*/ | ||
sync(); | ||
|
||
err = dmu_objset_own(dataset, DMU_OST_ZFS, B_TRUE, FTAG, &os); | ||
err = dmu_objset_own(dataset, DMU_OST_ZFS, B_TRUE, B_TRUE, FTAG, &os); | ||
if (err != 0) { | ||
(void) fprintf(stderr, "cannot open dataset '%s': %s\n", | ||
dataset, strerror(err)); | ||
|
@@ -267,7 +267,7 @@ calculate_range(const char *dataset, err_type_t type, int level, char *range, | |
* size. | ||
*/ | ||
if ((err = dmu_objset_own(dataset, DMU_OST_ANY, | ||
B_TRUE, FTAG, &os)) != 0) { | ||
B_TRUE, B_TRUE, FTAG, &os)) != 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure that we actually need any decrypted data here. If we do require it to be decrypted, how does zinject get the keys? |
||
(void) fprintf(stderr, "cannot open dataset '%s': %s\n", | ||
dataset, strerror(err)); | ||
goto out; | ||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that we actually need any decrypted data here. If we do require it to be decrypted, how does zinject get the keys?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to err on the side of caution here, and so anything I wasn't sure of required the keys be loaded. I will change this to
B_FALSE
. (same with the other instance in zinject).