Re: [PATCH v1.3 4/4] keys: add new key-type encrypted

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mimi Zohar
Date: Friday, November 12, 2010 - 2:02 pm

On Fri, 2010-11-12 at 19:45 +0000, David Howells wrote:

Was expecting your comments. Already started making the changes ...


agreed


No, was being consistent with trusted keys, and then uppercase was
removed there, but left here. Will remove.


Yes, that would be clearer.


I know I already fixed this. Somehow it crept back in.


Thanks for explaining the locking necessary here. Update of an encrypted
key changes the name of the key used to encrypt the data. There are no
guarantees that the key will remain around. So I'm not concerned that
after we release the RCU lock, the key could disappear.


Returning a pointer to the key was in order to do the key_put.  The
locking probably should be done in request_master_key.


Will look into it.


Yes, will review the types used through out, adding const when possible.


This is for systems without a TPM. The logic needs to exist, whether it
is here or in EVM.  By doing it here, a user could provide a passphrase
in the initramfs, which is used to decrypt the encrypted key.


right


ok


thanks,

Mimi

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v1.3 0/4] keys: trusted and encrypted keys, Mimi Zohar, (Wed Nov 10, 8:51 am)
[PATCH v1.3 2/4] key: add tpm_send command, Mimi Zohar, (Wed Nov 10, 8:51 am)
[PATCH v1.3 3/4] keys: add new trusted key-type, Mimi Zohar, (Wed Nov 10, 8:51 am)
[PATCH v1.3 4/4] keys: add new key-type encrypted, Mimi Zohar, (Wed Nov 10, 8:51 am)
Re: [PATCH v1.3 2/4] key: add tpm_send command, David Howells, (Thu Nov 11, 12:48 pm)
Re: [PATCH v1.3 3/4] keys: add new trusted key-type, David Howells, (Thu Nov 11, 2:57 pm)
Re: [PATCH v1.3 2/4] key: add tpm_send command, Mimi Zohar, (Thu Nov 11, 3:25 pm)
Re: [PATCH v1.3 3/4] keys: add new trusted key-type, David Safford, (Fri Nov 12, 5:58 am)
Re: [PATCH v1.3 2/4] key: add tpm_send command, David Howells, (Fri Nov 12, 7:11 am)
Re: [PATCH v1.3 2/4] key: add tpm_send command, David Safford, (Fri Nov 12, 7:48 am)
Re: [PATCH v1.3 3/4] keys: add new trusted key-type, David Howells, (Fri Nov 12, 9:52 am)
Re: [PATCH v1.3 3/4] keys: add new trusted key-type, David Safford, (Fri Nov 12, 10:39 am)
Re: [PATCH v1.3 3/4] keys: add new trusted key-type, David Howells, (Fri Nov 12, 11:36 am)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, David Howells, (Fri Nov 12, 12:45 pm)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, Mimi Zohar, (Fri Nov 12, 2:02 pm)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, David Howells, (Fri Nov 12, 2:23 pm)
Re: [PATCH v1.3 2/4] key: add tpm_send command, Rajiv Andrade, (Fri Nov 12, 2:24 pm)
Re: [PATCH v1.3 2/4] key: add tpm_send command, David Safford, (Fri Nov 12, 3:06 pm)
Re: [PATCH v1.3 2/4] key: add tpm_send command, David Howells, (Fri Nov 12, 3:11 pm)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, David Howells, (Mon Nov 15, 9:18 am)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, Mimi Zohar, (Mon Nov 15, 12:35 pm)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, David Howells, (Tue Nov 16, 7:08 am)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, David Howells, (Tue Nov 16, 10:50 am)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, Mimi Zohar, (Tue Nov 16, 11:54 am)
Re: [PATCH v1.3 4/4] keys: add new key-type encrypted, David Howells, (Tue Nov 16, 11:58 am)
Re: [PATCH v1.3 2/4] key: add tpm_send command, Rajiv Andrade, (Wed Nov 17, 6:12 am)