Message ID | 20180323192358.95691-11-ebiggers3@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
diff --git a/fs/crypto/keyinfo.c b/fs/crypto/keyinfo.c index 1435a1c81010..4913a4d5204f 100644 --- a/fs/crypto/keyinfo.c +++ b/fs/crypto/keyinfo.c @@ -89,12 +89,6 @@ static int validate_user_key(struct fscrypt_info *crypt_info, return PTR_ERR(keyring_key); down_read(&keyring_key->sem); - if (keyring_key->type != &key_type_logon) { - printk_once(KERN_WARNING - "%s: key type must be logon\n", __func__); - res = -ENOKEY; - goto out; - } ukp = user_key_payload_locked(keyring_key); if (!ukp) { /* key was revoked before we acquired its semaphore */