Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1341775pxk; Fri, 4 Sep 2020 07:10:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIDYlmnYkdpCMJFPZRZKFghm1h0Sqlrao3s35u9lsf54w+RXCTR2TLrQXb4Y3SGY3Gs6UH X-Received: by 2002:a17:906:d965:: with SMTP id rp5mr7163742ejb.364.1599228601378; Fri, 04 Sep 2020 07:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599228601; cv=none; d=google.com; s=arc-20160816; b=oqny8piM1wjpRvwlavKGtSQDeS1AjRUseKwoHptBQRGDoNb2xcJx7Sg65hOqNKbA5P mL7B0Z6ohrYUm2Jorq/8D8D+KGCDATpaOEOZchOMYkzuvNlHr8/IyWot60XZJIA1+jLK 0lbI6boCLnBtW/V7lTkByV5eiQG9BKygMGW54CIuXjGmijgzNe5PJGaKN0Gi7K2LwdH0 OCGS2+K+pL5Q94O/j+XTay1F6jpi3tHayB6OppnAA5g8+xAKqbPjmrkuMw7jyuBHLVTR pbZcpUAZG+nRmPV7nXtXPxtAGuyC0bFVsGS5C1gBTsBdQupFO6uq6UC6nN4No+aT0XBT VKnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date; bh=Id1KGfBmxFl/MGVNhErmYxO9Zy5nmUqI3a47/qSzqjk=; b=RfQuSEobYlYEGf0B29Jg2VTQTmuk/jde+8ADlBREaErrW3nQG1lDZ81q8Ad5WK0NPT ZDMABZUfRfF5j1psOy7sO7gpl1fOKBWSU+GQseGw1x9ksVvtgbeGpLqI0fNufwRT80R4 WtmxuSHPUoK6iAkP84b2lJr00IsDG8IInQ8+VGqZxIg9AN9/FtNojX3QtVgqGSVTDiBN L1JL2MMHLqrCUaFridLL/n2uqceaOj4ymG1o7LH9VrPi/Z0uyRwAGXPpOgonajKbGvXJ vownRKHBsR9hqVAH46mKazUf4yBNJDYDBbJzDa4EvEAxqLJgEWKid9RQfyxfehwmM2vB PpUg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o18si260262edw.582.2020.09.04.07.09.38; Fri, 04 Sep 2020 07:10:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730534AbgIDOIh (ORCPT + 99 others); Fri, 4 Sep 2020 10:08:37 -0400 Received: from wind.enjellic.com ([76.10.64.91]:53444 "EHLO wind.enjellic.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730581AbgIDOHR (ORCPT ); Fri, 4 Sep 2020 10:07:17 -0400 Received: from wind.enjellic.com (localhost [127.0.0.1]) by wind.enjellic.com (8.15.2/8.15.2) with ESMTP id 084E6Dui018627; Fri, 4 Sep 2020 09:06:13 -0500 Received: (from greg@localhost) by wind.enjellic.com (8.15.2/8.15.2/Submit) id 084E6BWY018626; Fri, 4 Sep 2020 09:06:11 -0500 Date: Fri, 4 Sep 2020 09:06:11 -0500 From: "Dr. Greg" To: Mimi Zohar Cc: Krzysztof Struczynski , James Bottomley , "linux-integrity@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "containers@lists.linux-foundation.org" , "linux-security-module@vger.kernel.org" , "stefanb@linux.vnet.ibm.com" , "sunyuqiong1988@gmail.com" , "mkayaalp@cs.binghamton.edu" , "dmitry.kasatkin@gmail.com" , "serge@hallyn.com" , "jmorris@namei.org" , "christian@brauner.io" , Silviu Vlasceanu , Roberto Sassu , nick.dusek@gmail.com Subject: Re: [RFC PATCH 00/30] ima: Introduce IMA namespace Message-ID: <20200904140611.GA18124@wind.enjellic.com> Reply-To: "Dr. Greg" References: <20200818152037.11869-1-krzysztof.struczynski@huawei.com> <1597767571.3898.15.camel@HansenPartnership.com> <401a2f36149f450291d1742aeb6c2260@huawei.com> <5331e60b5a1afb55e2bc778db1b95998466b687d.camel@linux.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5331e60b5a1afb55e2bc778db1b95998466b687d.camel@linux.ibm.com> User-Agent: Mutt/1.4i X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.3 (wind.enjellic.com [127.0.0.1]); Fri, 04 Sep 2020 09:06:13 -0500 (CDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 02, 2020 at 02:53:17PM -0400, Mimi Zohar wrote: Good morning, I hope the week is ending well for everyone. > On Fri, 2020-08-21 at 15:13 +0000, Krzysztof Struczynski wrote: > > > From: James Bottomley [mailto:James.Bottomley@HansenPartnership.com] > > > On Tue, 2020-08-18 at 17:20 +0200, krzysztof.struczynski@huawei.com > > > wrote: > > > > The measurement list remains global, with the assumption that there > > > > is only one TPM in the system. Each IMA namespace has a unique ID, > > > > that allows to track measurements per IMA namespace. Processes in one > > > > namespace, have access only to the measurements from that namespace. > > > > The exception is made for the initial IMA namespace, whose processes > > > > have access to all entries. > > > > > > So I think this can work in the use case where the system owner is > > > responsible for doing the logging and attestation and the tenants just > > > trust the owner without requiring an attestation. However, in a multi- > > > tenant system you need a way for the attestation to be per-container > > > (because the combined list of who executed what would be a security > > > leak between tenants). Since we can't virtualise the PCRs without > > > introducing a vtpm this is going to require a vtpm infrastructure like > > > that used for virtual machines and then we can do IMA logging per > > > container. > > > > I agree and wonder if we should decouple the attestation trust model, > > which depends on the specific use case (e.g. multi/single tenant, > > public/private cloud), from the IMA logic of linking the measurements to > > the container. Indeed, attestation from within the container might require > > anchoring to a vTPM/vPCR and the current measurement tagging mechanism can > > support several ways of anchoring them to a (virtual) root of trust. > > > > > I don't think the above has to be in your first patch set, we just have > > > to have an idea of how it could be done to show that nothing in this > > > patch set precludes a follow on from doing this. > > > > Given that virtualizing trust anchors seems like a separate problem in > > which industry consensus is not easy to reach for all use cases, an > > anchoring mechanism should probably be a separate IMA feature. > Other trust anchors for "trusted keys" has been discussed, but I wasn't > aware of any discussion about other trust anchors for the IMA > measurement list. The IMA measurement list is very much tied to a TPM. > > Including container measurements in the host measurement list, will > unnecessarily cause the host measurement list to grow. The decision of > what should and shouldn't be included in the host measurement list > shouldn't be defined by the container. We have been shipping, and more importantly maintaining in the wild, systems with a namespaced IMA implementation for 4+ years now. We presented the foundations for all of this at the 2015 Linux Security Summit in Seattle. For the purposes of further conversation, I should clarify and indicate that we have been shipping and maintaining what a namespaced IMA implementation turns into when all of the engineering challenges have been addressed with respect to workability issues, particularly in regards to keeping the resultant system from being too fragile to be effectively deployed and maintained. If practical experience is worth anything, I don't believe that namespacing the current IMA implementation is the optimum path forward. With respect to developing operationally relevant trusted platforms, the objective needs to be modeling the behavior of namespaces spawned from a known root behavior. The current IMA implementation provides a great deal of relevant infrastructure, but as these conversations have suggested, namespacing the current implementation is problematic given how entangled it has become with existing kernel infrastructure. What is needed is something far simpler that delegates, on the basis of a namespace, security policy to something other then the kernel, consistent with what we have learned about policy over the last 29+ years of Linux development. With respect to roots of trust, I don't think TPM's/fTPM's, virtual or otherwise, are going to be the relevant technology moving forward, although they will be part of the picture. Mimi has another post down thread that I will provide some more direct reflections on all of this for whatever value they may have. > Mimi Have a good day. Dr. Greg As always, Dr. Greg Wettstein, Ph.D, Worker Autonomously self-defensive Enjellic Systems Development, LLC IOT platforms and edge devices. 4206 N. 19th Ave. Fargo, ND 58102 PH: 701-281-1686 EMAIL: dg@enjellic.com ------------------------------------------------------------------------------ "I had far rather walk, as I do, in daily terror of eternity, than feel that this was only a children's game in which all of the contestants would get equally worthless prizes in the end." -- T. S. Elliot