]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
actions/policy: revert new protector links on failure
authorEric Biggers <ebiggers@google.com>
Tue, 28 Jan 2020 04:16:35 +0000 (20:16 -0800)
committerEric Biggers <ebiggers@google.com>
Tue, 28 Jan 2020 18:45:52 +0000 (10:45 -0800)
commit2d7229eb2a97c845d73a65ff9dd3368056c255a6
tree16f75a173808cfffd4153adf488f86b440a099ca
parent07d744068d437b09d7a07975e88e18440f5db2f3
actions/policy: revert new protector links on failure

Ensure that when an encryption policy is reverted (e.g. due to
encryptPath() failing after the policy was created), we also delete any
new protector links that were created for the policy, as this is not
handled by the logic that reverts new protectors.
actions/policy.go