Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp762471imm; Sat, 8 Sep 2018 08:27:37 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYXkAgDtzaoEKjEinIMEB82VC6cWeh+FP8qjr0+o4M+AdNBZ84UVDYmiTnFlbnQNfQtJbYl X-Received: by 2002:a62:1016:: with SMTP id y22-v6mr14422564pfi.109.1536420457626; Sat, 08 Sep 2018 08:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536420457; cv=none; d=google.com; s=arc-20160816; b=fFByAN9uk6RMPpTM5zThS5DVVnmfkBDsqUU5PaJf9DxKkIGHWcaWuHZYAmu4WBel25 dx8qW+tAtHr9C2JoXL7X1PSycdcz//AHrYsjeGr9VgNJ4XEkH/Qpp6PyVmzG0uyInN6u 5qYPdqdw2TQaVVxVFPaWAgBlXD/Ex16IBV2bdwLALZBz0Hq0kzru314cnn/XPQAHNVGE s1hn62y6PKMCZEjqBbyYFobLAHzn71/SKsZkCK5xsZP3YIKWtFM61ZAvVkca4RS7mCBc xvPOk/zsTL8P1iIOJFoLwjATBRTHoiZE9Ftj0P1bhns6FiGr6AFz/wH7SdIh6QWNrhc7 yjQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=L+I3aeDgw2h5MLuoBULKZA7ZH071hTAlrp7zeYtuwh0=; b=mpEqe1cEbNvFL4TiGOwsENfJM7al9qrBN5wC5nnpldgZeMJ8Ho8PQytz8pA234asjF gTtItDjLCeAPak13zI5ZbZzHCG6dh7FIcJdKubQvqlu7VKuFi6v8OHY14D4dx9PwIuhe XhE5gjEIANEPtoY90elHsdDLzMkw5aRMKs7r2gzZgvwEevs2a9xdwvYdyvYq6865xNja Hlq0wwznEcaGajd5YMJsn3cjsUgsVScFdDVsxtFB3OMnbCHgEom1K6s9VvgvB5fz3t4V 7UT1dkXo+ItfOh4zUcFplSOayHfPLPqCRbMuVNIxSrJnB9fwgx0OGV2bRpbY5q0V7dB0 WeTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10-v6si11579652pgh.310.2018.09.08.08.27.22; Sat, 08 Sep 2018 08:27:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727638AbeIHUM0 (ORCPT + 99 others); Sat, 8 Sep 2018 16:12:26 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:35816 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726877AbeIHUM0 (ORCPT ); Sat, 8 Sep 2018 16:12:26 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 150AF40776DB; Sat, 8 Sep 2018 15:26:16 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-123-84.rdu2.redhat.com [10.10.123.84]) by smtp.corp.redhat.com (Postfix) with ESMTP id 02EB5104946D; Sat, 8 Sep 2018 15:26:14 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <25C89575-D4E9-48FB-BEC9-383B09F32E44@holtmann.org> References: <25C89575-D4E9-48FB-BEC9-383B09F32E44@holtmann.org> <153618445730.7946.10001472635835806478.stgit@warthog.procyon.org.uk> To: Marcel Holtmann Cc: dhowells@redhat.com, James Morris , Denis Kenzior , keyrings@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/22] KEYS: Support TPM-wrapped key and crypto ops MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12100.1536420374.1@warthog.procyon.org.uk> Date: Sat, 08 Sep 2018 16:26:14 +0100 Message-ID: <12101.1536420374@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sat, 08 Sep 2018 15:26:16 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Sat, 08 Sep 2018 15:26:16 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Marcel Holtmann wrote: > so I have reviewed and tested this code. In addition, we have test cases for > it in ELL (embedded linux library). I wonder if there's any practical way to add a test for this to the keyutils test suite. I'm guessing it's quite tricky, given the extra bits you need to emulate the TPM. David