Commit 232697ab authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

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: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent d8a161ad
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment