]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
actions/recovery: ensure recovery passphrase is really custom_passphrase
authorEric Biggers <ebiggers@google.com>
Tue, 28 Jan 2020 03:24:30 +0000 (19:24 -0800)
committerEric Biggers <ebiggers@google.com>
Tue, 28 Jan 2020 03:24:30 +0000 (19:24 -0800)
commitd5b8bdcfba528c0c0e9f8052a705e454b26cb28f
tree01e13351a05cb91154a52da3799be11821d61b9d
parent45c27d59ee40f3945837ea827f29f6896414157f
actions/recovery: ensure recovery passphrase is really custom_passphrase

If the login protector was just created by the same 'fscrypt encrypt'
command, then policy.Context.Config.Source will be pam_passphrase.  This
needs to be overridden to custom_passphrase when creating the protector
for the recovery passphrase.

This fixes the following error:

    fscrypt encrypt: login protectors do not need a name

Resolves https://github.com/google/fscrypt/issues/187
Update https://github.com/google/fscrypt/issues/186
actions/recovery.go