]> git.apps.os.sepia.ceph.com Git - fscrypt.git/commit
keyring: improve errors
authorEric Biggers <ebiggers@google.com>
Sat, 9 May 2020 21:52:07 +0000 (14:52 -0700)
committerEric Biggers <ebiggers@google.com>
Sat, 9 May 2020 22:21:31 +0000 (15:21 -0700)
commitfb88d74f0335cdf8218bb8dfbaa03f23773318cf
tree423e1d12c13e081ec29a53a0adebd5ff733bc56a
parent9383d4be92981a4c956c775479bb48b7eec9db79
keyring: improve errors

ErrAccessUserKeyring:
Include the user, and fix the backwards wrapping.

ErrSessionUserKeyring:
Include the user.

ErrKeyAdd:
ErrKeyRemove:
ErrKeySearch:
ErrLinkUserKeyring:
Replace these with one-off unnamed errors because they are
never checked for, and this makes it easier for the callers to
provide better messages, e.g. fixing the backwards wrapping.
cli-tests/t_v1_policy.out
cmd/fscrypt/errors.go
keyring/fs_keyring.go
keyring/keyring.go
keyring/user_keyring.go