diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-05-14 07:00:22 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:32 -0400 |
commit | 232697ab9ded81d56afa8a2e47edb48deea5f9e6 (patch) | |
tree | ad187b1524d594918dfa8434890974bc50515da5 /fs/bcachefs/checksum.c | |
parent | d8a161ad5493016aa6eba8853990456aa78316c9 (diff) | |
download | linux-232697ab9ded81d56afa8a2e47edb48deea5f9e6.tar.gz linux-232697ab9ded81d56afa8a2e47edb48deea5f9e6.tar.bz2 linux-232697ab9ded81d56afa8a2e47edb48deea5f9e6.zip |
bcachefs: Switch to key_type_user, not logon
The only difference key_type_logon and key_type_user is that
key_type_logon keys can't be read by userspace.
However, userspace has actually been adding keys to both the logon and
user keychains, because userspace fsck requires the keychain interface -
so we might as well just use user and drop the logon keychain.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/checksum.c')
-rw-r--r-- | fs/bcachefs/checksum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/checksum.c b/fs/bcachefs/checksum.c index 425582f60d7a..50157b4013a5 100644 --- a/fs/bcachefs/checksum.c +++ b/fs/bcachefs/checksum.c @@ -424,7 +424,7 @@ static int __bch2_request_key(char *key_description, struct bch_key *key) const struct user_key_payload *ukp; int ret; - keyring_key = request_key(&key_type_logon, key_description, NULL); + keyring_key = request_key(&key_type_user, key_description, NULL); if (IS_ERR(keyring_key)) return PTR_ERR(keyring_key); |