diff options
| author | Eric Biggers <ebiggers@google.com> | 2020-01-27 20:16:35 -0800 |
|---|---|---|
| committer | Eric Biggers <ebiggers@google.com> | 2020-01-28 10:45:52 -0800 |
| commit | 5c08edd521deadd36bec36662d30681b01253d62 (patch) | |
| tree | e8121e36dc6c33f89b5a4be9d2a2fae0b5262431 /README.md | |
| parent | 4e0230bdbc9cf893099919170a10e44f84422747 (diff) | |
cmd/fscrypt/commands: clean up properly when encryptPath() fails
Move the deferred locking and deletion of the policy on failure to the
correct places, so that it's done in all failure cases, including in the
case where adding the recovery protector fails.
Also make the recovery protector be locked and deleted on failure.
Finally, put all the code to do deferred deprovisioning of the policy in
the same place: right after it's provisioned.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions