Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3620429ybt; Tue, 30 Jun 2020 07:27:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO3P0ufv9AD8sllnPVYJFmHwzRKPINCN2egm7INon/nQzfg2kZRKIDmqRcwpvSnNzqDc+1 X-Received: by 2002:a17:906:455:: with SMTP id e21mr19251532eja.550.1593527241388; Tue, 30 Jun 2020 07:27:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593527241; cv=none; d=google.com; s=arc-20160816; b=B/aHEiJFSLurU715d6kiZ8G+jgRwSyVrzzimBDPdxdSzJx/EtZvp996+KZrb/lju9p u0djPd6ae7rqzF9KbGftXEwXcYh57NnyCwLXRiPC2d33hsYQUyksC77giyJahCUccCIf ChRZAVQ3+LsObjxQDXQjzQ9w38lFHWsEvMxbTJF82NPSJI5ArrGh7B07vo7HL5KJKAFI BCxPS94Elyd8kFwzRG8s8FZmLCgP0SNGZC415WdybwkrT00dAUKtR4oeIsEpgwNYOm7E dDJpin70CKcXNXOY6DHSoSikzByU8YS5R5g6mQwbRN/JxxmEk7QrbMXfvmBmv6GaMm6P +MuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=BPgV9NIPumnVX0lYxenD2EwODLMDEuNd4NsUsTiTF0Q=; b=LOKH79qiTgB2oQf7RXVUThwE4uVIaZCXJfkAzJBL3GeCsap1rHPfHExBHTyJWZMD4r GYhFrsWXOZzsM4Jc8TxTJeJePRs3rRsYkPjgQeyc5nkwOICkO0p4ESgkulbL5GwR86GE CmxxaAWs2g82yyWnGZySp6IyECCZV6HCcB18XHpOTwi9UtgqilkpcRyb8tndKni8mlym YBfsQFfLe0JbgoV9lKS8+3kRPT4yGqbDdGXvE2ca9o8Yma15oFC+0l3jtMcyA3OIVCB7 BRDD4e2ozuqYn7kInaMTogyAaQiDgDQVrUyJSSmSF64VGQWFJk09RDkSdp4emdt8hicW B5vg== 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 u29si1904554edi.469.2020.06.30.07.26.57; Tue, 30 Jun 2020 07:27:21 -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 S1731488AbgF3OZO (ORCPT + 99 others); Tue, 30 Jun 2020 10:25:14 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:53075 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727046AbgF3OZO (ORCPT ); Tue, 30 Jun 2020 10:25:14 -0400 Received: from mail-qk1-f173.google.com ([209.85.222.173]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.145]) with ESMTPSA (Nemesis) id 1Ml72g-1j7LbY1mKS-00lSoo for ; Tue, 30 Jun 2020 16:25:12 +0200 Received: by mail-qk1-f173.google.com with SMTP id r22so18676249qke.13 for ; Tue, 30 Jun 2020 07:25:12 -0700 (PDT) X-Gm-Message-State: AOAM531h27p37htckVaypHqhr8pfW4I1eo0DH+423UiCcR1uz2a7/nFQ 7cmldN/A/Ys5BvqBCvW9i5DoBiitJWdMie1H2tc= X-Received: by 2002:a37:b484:: with SMTP id d126mr20249897qkf.394.1593527111290; Tue, 30 Jun 2020 07:25:11 -0700 (PDT) MIME-Version: 1.0 References: <20200629225932.5036-1-daniel.gutson@eclypsium.com> <20200630085641.GD637809@kroah.com> In-Reply-To: From: Arnd Bergmann Date: Tue, 30 Jun 2020 16:24:55 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] SPI LPC information kernel module To: Richard Hughes Cc: Greg Kroah-Hartman , Daniel Gutson , Derek Kiernan , Mauro Carvalho Chehab , linux-kernel , Alex Bazhaniuk Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:MqOyAIpgFYMrb5ombJLrrvqUBVvK89ETVRvGrbFvdxTihFILLSs EYDRnhOOqH4Lgvs4vBvqgGJ0bFapdRr7EMMFoKpSmVf77RhcI/nCqsU6+2eu8v8xCtWx8wI +E6gsuWz5Bjj5W1qQ+bzYThWciCseMoRhiFuBob+FLKxnJyyW12Hfr2imO861YtDrmmWCiw Bct+PpmQ1CBNo0UTiSk5Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:mUk2zHr6dFs=:scqvBwtKaKszBeNQFqNqjj /d37aRKfCXwuQ/WqvsaVJFzK6IHcC3x+CLsKNeyRClYeB3FgMWM2zS9GrMKZuwUnm+2FpyvyP lJeqWPwiQpBjy+uoB/28k7CYZw10/BmwnG29mzAW8/6oR8rPYbVMkX7D9th4posRb2DDedFY5 OkX5BZ0IZEo7ibmEW7iJwzjtoA/ybefEvdnDmO2PynVaQoNqMBxyM41py+h2VfXDKxEhcUFxW 4ZunkuBFI6gems2Uo7ZnICKd27wuPvYtBdRpPFyuwqVuQphVbjiCnNo7KRFSOLsoNgaEkm9K3 5icvNLybnLegs2LvigGsZt8mYKsayBoEIC1Wi3Dg75mvL056EqI5l0sJyFHTfJLVc4iZWlmTS GjNqSAuwyl2Lg0F82C4Mu6zMeuAG+NqpS9h9lbk6ZS8n9wFJbZfQCqWLzVnGifr6JEK4PaNj4 Cqo6PVXLvmbBjNmDt662HLwam/1B002ircNXHIdf6JB1AhBhsroxeuvUsG2OhynJ6hdHUeC2j xrPYE0nBsRXJ+0mdrNAcjhwSQiajoq0H2Punu3PvLnAy5NPDF1E14MBUsn5twS9CIewNZ5gc4 pAtkKETMQH4lDqaEgt9a/dWMoKhinXKYzGY63lB8qsZU6G9/7r3K+L3Z+4zj2w9AIPNzL7N61 YPpH5QyK6Z4WOnqE2qH0lvMKDOTfCSLEvzp3gIw6lW5zuuIZebTK1QNMgrn2wWCggCZDVhHPN elxHrW1LIYFCSWouMu3iSSQngiT3ZD+ofIdVrOzkXhM9AgBM2TS0aqVQVHdTycwIu9ECn5BFJ VJ/uz+yOkLsaDddiNh+dlWX5O9J4IU3vlfeRETzJaUDoGvBkC7OUvj26rawNYkIP9xa2JXQ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 3:57 PM Richard Hughes wrote: > > On Tue, 30 Jun 2020 at 09:56, Greg Kroah-Hartman > wrote: > > Again, which makes it seem like securityfs is not the thing for this, as > > it describes the hardware, not a security model which is what securityfs > > has been for in the past, right? > > It describes the hardware platform. From a fwupd perspective I don't > mind if the BC attributes are read from securityfs, sysfs or even read > from an offset in a file from /proc... I guess sysfs makes sense if > securityfs is defined for things like the LSM or lockdown status, > although I also thought sysfs was for devices *in* the platform, not > the platform itself. I guess exposing the platform registers in sysfs > is no more weird than exposing things like the mei device and rfkill. Why does fwupd care about the platform then? If these are register values that relate to the flash device and that device is what the firmware update gets written to, shouldn't it just use an interface from that device? Arnd