Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753509Ab0LWReF (ORCPT ); Thu, 23 Dec 2010 12:34:05 -0500 Received: from out3.smtp.messagingengine.com ([66.111.4.27]:49995 "EHLO out3.smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753330Ab0LWReC (ORCPT ); Thu, 23 Dec 2010 12:34:02 -0500 X-Sasl-enc: o12VrycFLRRctNpWHBTHh6laHxL95rlDDVKIiKmARDjg 1293125642 To: linux-security-module@vger.kernel.org Subject: [RFC][PATCH 1/6] encrypted-keys: fixed valid_master_desc() function description From: Roberto Sassu Date: Thu, 23 Dec 2010 18:33:58 +0100 Cc: keyrings@linux-nfs.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Mimi Zohar , David Howells , James Morris , David Safford , Gianluca Ramunno , Tyler Hicks , kirkland@canonical.com MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8565862.6fHrdxAo5u"; protocol="application/pkcs7-signature"; micalg=sha1 Content-Transfer-Encoding: 7bit Message-Id: <201012231833.59016.roberto.sassu@polito.it> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 7308 Lines: 122 --nextPart8565862.6fHrdxAo5u Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Valid key type prefixes for the parameter 'key-type' are: 'trusted' and 'user'. Signed-off-by: Roberto Sassu =2D-- security/keys/encrypted_defined.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/security/keys/encrypted_defined.c b/security/keys/encrypted_de= fined.c index 32d27c8..c1c5e27 100644 =2D-- a/security/keys/encrypted_defined.c +++ b/security/keys/encrypted_defined.c @@ -84,7 +84,7 @@ static int aes_get_sizes(void) /* * valid_master_desc - verify the 'key-type:desc' of a new/updated master-= key * =2D * key-type:=3D "trusted:" | "encrypted:" + * key-type:=3D "trusted:" | "user:" * desc:=3D master-key description * * Verify that 'key-type' is valid and that 'desc' exists. On key update, =2D-=20 1.7.2.3 --nextPart8565862.6fHrdxAo5u Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIO1zCCBHgw ggNgoAMCAQICAQIwDQYJKoZIhvcNAQEFBQAwQzEQMA4GA1UEChMHRXVyb1BLSTEVMBMGA1UECxMM RXVyb1BLSSByb290MRgwFgYDVQQDEw9FdXJvUEtJIHJvb3QgQ0EwHhcNMTAxMjE4MTM0NjQ3WhcN MjAxMjMxMjM1OTU5WjBUMQswCQYDVQQGEwJJVDEQMA4GA1UEChMHRXVyb1BLSTEWMBQGA1UECxMN RXVyb1BLSSBJdGFseTEbMBkGA1UEAxMSRXVyb1BLSSBJdGFsaWFuIENBMIIBIjANBgkqhkiG9w0B AQEFAAOCAQ8AMIIBCgKCAQEAl8TJXW2u1qPxn0/lyIBNvH1S5LBM3SkLFoNHPSx8TZiZ+f7nKXen N2h07KhIQRmycQn3FQqVUzm8fuV6zK8Je20Jvp/isL/fPcPQbu5G1+iaH7uU/9Fuq7MAFL+Pd+Su JGSEV0Rm7jENI3649qnZLZvXyw4To2kqQBlCUJLxSfyi74rIqqEDX5eimCf+CK8mU9gtzOZZCCh0 yhFU3IHR2giypasinSDss5PO+LbVLh4V6NMU5oZx2tx5FKaeYJIhURqFLxRVMlf2EGbe4LOuAlav 1GZt8udZoiH/b+D9j7hbd6nNHumjS8nC3hl7YybxFgwMnpRPc3QDKMGj4yf6IQIDAQABo4IBZDCC AWAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFNB15T/ryrprllF8 IKWYvfNn07RKMB8GA1UdIwQYMBaAFPBxHCgzWLfFxrXDv1F1qFD0nNI0MEkGA1UdIARCMEAwPgYK KwYBBAGpBwEBA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jbmljbyBkaSBUb3Jpbm8xNjA0BgNVBAMTLVBvbGl0ZWNuaWNv IGRpIFRvcmlubyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eQICArswCQYFKw4DAhoFAKCBhzAYBgkq hkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMDEyMjMxNzMzNThaMCMGCSqG SIb3DQEJBDEWBBTKYXATqqlXVAUE5Z8O5/GoKjnaWzAoBgkqhkiG9w0BCQ8xGzAZMAsGCWCGSAFl AwQBAjAKBggqhkiG9w0DBzANBgkqhkiG9w0BAQEFAASCAQADGXjJU0QJizI1cRIXiS80i92ioBPm pyP9N8uqgK9jKaOW2oqsNWJLxPnmymNclXEf5NJLfFyT0/MU6EoVAc0kxQ32AoJqF72P4IzO21gC q2udw6+KQXiuHWqLmDQhUajQLk6ISkLzpOTblnB5yNdxUzYb+AvNlcvarBqGkj/KAdNdGbv4Q5YE kkdK43n3+ztEy1J5AJwJOgckqdojX7cIIOnvtOAsEJtxuUAtM96FdqiCII7ColYxwaaUhMSO048Q CgBnDwSlx903rYm4evcrQdEx7xZqWrv0KX5n1+8XPFzwkuHRrHRuAv5xrRKw/muapyVRNZGWzjsA jcf8gYVJAAAAAAAA --nextPart8565862.6fHrdxAo5u-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/