Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp665341pxk; Thu, 3 Sep 2020 09:29:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyR5V08EJQ/Puac4h+SE7PpFqdQGJIIZEwIg3oIyMUOMNGd2NsdGgjco9c9u3pge9DRfPlK X-Received: by 2002:aa7:c308:: with SMTP id l8mr3917064edq.361.1599150556605; Thu, 03 Sep 2020 09:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599150556; cv=none; d=google.com; s=arc-20160816; b=BrgOGt8QiP8IVNgFGpQ0QkNQFbNWAP/dXOrjbngVNbjMkcRFC2gI1X7EXbHntvtowP +dg75NiU3F3/YOFSwAExe7JDUICsrkF3CRzeT+0VeLO9ckFjqS8c5FttIhmT4rPjSYLq vzQ+x15dz5lL3qsURMYx38XKOilz5/m8ADPRGH4WoofmS4P3FpgPn05OSGl+gd/J81K9 TmzT6pHPHMSCTrn03ENURjWyUoMm4TbZrrH61o4z2codMPwOqUTPrXblGQ+ZwJQvOJAI hfIUgppvQQ+cgL4wgS0gT1GEvbM7UEygbaYtq2GfgAmOUbSDj8KihWWv6fr/8l/Mat7t 6CGQ== 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; bh=m4EyC2d5DMZ0DL/0fZ0C+AIXVjarBtCpjQSwPIDpc8w=; b=Y3H+eQE93fKFGE0rj6YPK6ZgOQPbSNocSHHINvAR4cxicXdv/5jkcehtZtgXOrVlNP qDNYfMh/k+BNmEKgyEsBacJn9wHjnObUOBKs2urNVygOlVNVJSUS5z2O/CLjv88UvShq tUdnF6qxxVU2vSy0MawWbSCoPGOm56Gg9KyEu1dmqqfGfvHlOYjQgRJpTfrPcWvUXaos 6PNGDX8nc7WudgCcIFVbUJHM4f5DH80XUsdyI/P0ayzPSjK1eDMt+KFKXj6ZARGlKf58 iZFENkjIVFh6omaP1hhqq0htFYlJGBY54lX5PjbfNrRXblcOmeu8HwZXAGqiOELWL5Th Wkag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Y6fIweep; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p93si2021899edp.343.2020.09.03.09.28.52; Thu, 03 Sep 2020 09:29:16 -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=@kernel.org header.s=default header.b=Y6fIweep; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728902AbgICQ1i (ORCPT + 99 others); Thu, 3 Sep 2020 12:27:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:50116 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728490AbgICQ1f (ORCPT ); Thu, 3 Sep 2020 12:27:35 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3F09520758; Thu, 3 Sep 2020 16:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599150452; bh=n18zFWphDNg2aRYfjtmiYIaEOax/Mxu+pvAzXVc1jPo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Y6fIweep7s/hPm6QbZue1G+dM/GxD8ySstK8ScMaQN2tkcSPOzFlfnBbScumPtVP/ z9iyOs2c9RSZYZ1vKazCyXX7ARd6iiKO0mdPOMJRM28z44nUr+Ce6vYXlvE9SbEXK1 a8f72H6oG9i2T2BhEjbE8l1LriBXT3GagkDDhnFg= Date: Thu, 3 Sep 2020 18:27:56 +0200 From: Greg Kroah-Hartman To: Daniel Gutson Cc: Derek Kiernan , Tudor Ambarus , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Mika Westerberg , Arnd Bergmann , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Richard Hughes , Alex Bazhaniuk Subject: Re: [PATCH] Platform integrity information in sysfs Message-ID: <20200903162756.GB406278@kroah.com> References: <20200903161804.403299-1-daniel.gutson@eclypsium.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200903161804.403299-1-daniel.gutson@eclypsium.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 03, 2020 at 01:18:04PM -0300, Daniel Gutson wrote: > This patch exports information about the platform integrity > firmware configuration in the sysfs filesystem. > In this initial patch, I include some configuration attributes > for the system SPI chip. > > This initial version exports the BIOS Write Enable (bioswe), > BIOS Lock Enable (ble), and the SMM BIOS Write Protect (SMM_BWP) > fields of the BIOS Control register. The idea is to keep adding more > flags, not only from the BC but also from other registers in following > versions. > > The goal is that the attributes are avilable to fwupd when SecureBoot > is turned on. > > The patch provides a new misc driver, as proposed in the previous patch, > that provides a registration function for HW Driver devices to register > class_attributes. > In this case, the intel SPI flash chip (intel-spi) registers three > class_attributes corresponding to the fields mentioned above. > > This version of the patch provides a new API supporting regular > device attributes rather than custom attributes, and also avoids > a race condition when exporting the driver sysfs dir and the > attributes files inside it. > Also, this patch renames 'platform lockdown' by 'platform integrity'. > > Signed-off-by: Daniel Gutson > --- Always version your patches, there's no way this is "v1", right? greg k-h