public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] trusted-key: allow overwriting the migratable flag
@ 2011-11-02 12:41 Roberto Sassu
  2011-11-02 12:41 ` [PATCH 2/2] trusted-key: added support for loading a key blob in the TPM Roberto Sassu
  2011-11-02 16:58 ` [PATCH 1/2] trusted-key: allow overwriting the migratable flag David Safford
  0 siblings, 2 replies; 8+ messages in thread
From: Roberto Sassu @ 2011-11-02 12:41 UTC (permalink / raw)
  To: keyrings
  Cc: linux-security-module, linux-kernel, safford, zohar, dhowells,
	jmorris, Roberto Sassu

[-- Attachment #1: Type: text/plain, Size: 823 bytes --]

The migratable should be modifiable during the key update() method. This
allows for example to update a migratable trusted key, wrapped by a TPM
key, to a a non-migratable one sealed under the SRK with a PCR set.

Signed-off-by: Roberto Sassu <roberto.sassu@polito.it>
---
 security/keys/trusted.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/security/keys/trusted.c b/security/keys/trusted.c
index 0c33e2e..8777015 100644
--- a/security/keys/trusted.c
+++ b/security/keys/trusted.c
@@ -1036,7 +1036,6 @@ static int trusted_update(struct key *key, const void *data, size_t datalen)
 		goto out;
 	}
 	/* copy old key values, and reseal with new pcrs */
-	new_p->migratable = p->migratable;
 	new_p->key_len = p->key_len;
 	memcpy(new_p->key, p->key, p->key_len);
 	dump_payload(p);
-- 
1.7.6.4


[-- Attachment #2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2061 bytes --]

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-11-03 12:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-02 12:41 [PATCH 1/2] trusted-key: allow overwriting the migratable flag Roberto Sassu
2011-11-02 12:41 ` [PATCH 2/2] trusted-key: added support for loading a key blob in the TPM Roberto Sassu
2011-11-02 17:26   ` David Safford
2011-11-02 17:43     ` Roberto Sassu
2011-11-03 12:12       ` Roberto Sassu
2011-11-02 16:58 ` [PATCH 1/2] trusted-key: allow overwriting the migratable flag David Safford
2011-11-02 17:37   ` Roberto Sassu
2011-11-02 17:46     ` David Safford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox