From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 719C787D for ; Tue, 7 Oct 2014 18:37:55 +0000 (UTC) Received: from quartz.orcorp.ca (quartz.orcorp.ca [184.70.90.242]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 096EF20397 for ; Tue, 7 Oct 2014 18:37:55 +0000 (UTC) Date: Tue, 7 Oct 2014 12:02:09 -0600 From: Jason Gunthorpe To: Stefan Berger Message-ID: <20141007180209.GD10432@obsidianresearch.com> References: <543428E1.7050702@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <543428E1.7050702@linux.vnet.ibm.com> Cc: keyrings@linux-nfs.org, jarkko.sakkinnen@linux.intel.com, "ksummit-discuss@lists.linuxfoundation.org" , "linux-kernel@vger.kernel.org" , LSM List , tpmdd-devel@lists.sourceforge.net, James Morris , linux-ima-devel@lists.sourceforge.net, trousers-tech@lists.sourceforge.net Subject: Re: [Ksummit-discuss] [tpmdd-devel] [TrouSerS-tech] TPM MiniSummit @ LinuxCon Europe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Oct 07, 2014 at 01:54:41PM -0400, Stefan Berger wrote: > Why add the complexity of swapping of authenticated sessions and keys > into the kernel if you can handle this in userspace? You need a library > that is aware of the number of key slots and slots for sessions in the > TPM and swaps them in at out when applications need them. Trousers is > such a library that was designed to cope with the limitations of the > device and make its functionality available to all applications that > want to access it. How does trousers work with the kernel when the kernel is also using TPM key slots for IMA/keyring/whatever? Jason From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754929AbaJGSCZ (ORCPT ); Tue, 7 Oct 2014 14:02:25 -0400 Received: from quartz.orcorp.ca ([184.70.90.242]:38716 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753695AbaJGSCX (ORCPT ); Tue, 7 Oct 2014 14:02:23 -0400 Date: Tue, 7 Oct 2014 12:02:09 -0600 From: Jason Gunthorpe To: Stefan Berger Cc: Andy Lutomirski , Peter Huewe , keyrings@linux-nfs.org, jarkko.sakkinnen@linux.intel.com, "ksummit-discuss@lists.linuxfoundation.org" , "linux-kernel@vger.kernel.org" , LSM List , tpmdd-devel@lists.sourceforge.net, James Morris , linux-ima-devel@lists.sourceforge.net, trousers-tech@lists.sourceforge.net Subject: Re: [tpmdd-devel] [TrouSerS-tech] [Ksummit-discuss] TPM MiniSummit @ LinuxCon Europe Message-ID: <20141007180209.GD10432@obsidianresearch.com> References: <543428E1.7050702@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <543428E1.7050702@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Broken-Reverse-DNS: no host name found for IP address 10.0.0.161 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 07, 2014 at 01:54:41PM -0400, Stefan Berger wrote: > Why add the complexity of swapping of authenticated sessions and keys > into the kernel if you can handle this in userspace? You need a library > that is aware of the number of key slots and slots for sessions in the > TPM and swaps them in at out when applications need them. Trousers is > such a library that was designed to cope with the limitations of the > device and make its functionality available to all applications that > want to access it. How does trousers work with the kernel when the kernel is also using TPM key slots for IMA/keyring/whatever? Jason