Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2202042ybg; Thu, 30 Jul 2020 13:05:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzg1Yds887mGg1XzEUU70vvGvw19xQwnGuwnOXzgSQ8pS793r3KQx3gFHx0QWTSNAR5dxsp X-Received: by 2002:aa7:c30b:: with SMTP id l11mr658827edq.253.1596139512342; Thu, 30 Jul 2020 13:05:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596139512; cv=none; d=google.com; s=arc-20160816; b=bbsQzzbGEK16lVNaCWIwS1ykWv0FEh++KYWpd9HwCCX1Ljbgr184AM7qSf0ecrDXae RbbhVBh91OL05IH83rkdl5yJsaDN6zBgBpfzRUEdFoOJFecSQUMVTjneyYH4DkdFsAZS IuGAcvG+seNPM3+AsBRzTTtzdshif5wv4bhFzOfQLGVlQ3lNGyO8ML217asyPiCeWBVO 0jQ7xh8qklDdgafgf4TxT2NVcbJ0aDhqVQX6T2Ri6FpRry78lkYUh89bMaDS/9jduVug E1XZ4fSvzp5sFiAFhBYDh0idLUatQWDp+TILaTH3jWfjQjRG5K+f3UNOE5CYgqGvmnnX oy2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-filter; bh=YPE+I9ZEJip/DLdFnXo/Xe1crHLzi3V6ybUliBj4JTs=; b=FnmNivmulpWsD33x6I9W55AxgFxqunztNS4G6Xcx+JulwHQcJxf7B7j5mcW/X3PHlZ L4y6mNtbX52yPPlSolvJuLqxWuapqpMsICdEsZi7GLCuuk+FtBwdlq4DWooxs0NoCiH9 UHKieuQWxuK0q4EDqARk2MkIG20w0XOn7XBGYwWc4VoGgZobslajYsoe0z41tWW488sR jjeoQ5ImiuRZwlCAm4gqSALPjFtZwqRWvCWGiNqxdNIrHvoNsg7a9EoeduJxp6sEsYHf VwRnIOBSW9udeOkC5DBwdzD/HtAU2Y4l4dIJZMwWx9Xahzh/08YPHifZzDB2EAIpM5IA uUOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Q48T1W+x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c7si3943420edw.303.2020.07.30.13.04.47; Thu, 30 Jul 2020 13:05:12 -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; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=Q48T1W+x; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728625AbgG3UEk (ORCPT + 99 others); Thu, 30 Jul 2020 16:04:40 -0400 Received: from linux.microsoft.com ([13.77.154.182]:50738 "EHLO linux.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726939AbgG3UEk (ORCPT ); Thu, 30 Jul 2020 16:04:40 -0400 Received: from sequoia (162-237-133-238.lightspeed.rcsntx.sbcglobal.net [162.237.133.238]) by linux.microsoft.com (Postfix) with ESMTPSA id BA74720B4908; Thu, 30 Jul 2020 13:04:38 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com BA74720B4908 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1596139479; bh=YPE+I9ZEJip/DLdFnXo/Xe1crHLzi3V6ybUliBj4JTs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q48T1W+x1nOBEj0hcOWhn4lqsNeYMH9Myb4bAIILzU8uH1cVuuCYmw5pM7NGiUQtX gYeTWUbYNAbItOcYK8W6eaVT+yajSSHjU5egR40XUoxV2mb0LgSuRcoDrd0jBlmnpR x1rnxdYAClfs/1zgh0MM7ZY61sMnY7o3mZupn4Fs= Date: Thu, 30 Jul 2020 15:04:36 -0500 From: Tyler Hicks To: Lakshmi Ramasubramanian Cc: zohar@linux.ibm.com, stephen.smalley.work@gmail.com, casey@schaufler-ca.com, sashal@kernel.org, jmorris@namei.org, linux-integrity@vger.kernel.org, selinux@vger.kernel.org, linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 4/4] IMA: Handle early boot data measurement Message-ID: <20200730200436.GY4181@sequoia> References: <20200730034724.3298-1-nramas@linux.microsoft.com> <20200730034724.3298-5-nramas@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-07-30 11:02:50, Lakshmi Ramasubramanian wrote: > On 7/29/20 8:47 PM, Lakshmi Ramasubramanian wrote: > > Hi Tyler, > > > diff --git a/security/integrity/ima/Kconfig b/security/integrity/ima/Kconfig > > index 080c53545ff0..86cba844f73c 100644 > > --- a/security/integrity/ima/Kconfig > > +++ b/security/integrity/ima/Kconfig > > @@ -322,10 +322,9 @@ config IMA_MEASURE_ASYMMETRIC_KEYS > > depends on ASYMMETRIC_PUBLIC_KEY_SUBTYPE=y > > default y > > -config IMA_QUEUE_EARLY_BOOT_KEYS > > +config IMA_QUEUE_EARLY_BOOT_DATA > > bool > > - depends on IMA_MEASURE_ASYMMETRIC_KEYS > > - depends on SYSTEM_TRUSTED_KEYRING > > + depends on SECURITY || (IMA_MEASURE_ASYMMETRIC_KEYS && SYSTEM_TRUSTED_KEYRING) > > default y > Similar to the change you'd suggested for validating LSM_STATE and > LSM_POLICY func, I think IMA_QUEUE_EARLY_BOOT_DATA config should be enabled > for SECURITY_SELINUX. > > depends on SECURITY_SELINUX || > (IMA_MEASURE_ASYMMETRIC_KEYS && SYSTEM_TRUSTED_KEYRING) > > And, when more security modules are added update this CONFIG as appropriate. > > Does that sound okay? Yes, I think so. Tyler > > -lakshmi