lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK8P3a1e0pnGGC7tvncCLDizG3jhEds9RXJz359J0Jma5W=0cw@mail.gmail.com>
Date:   Tue, 21 Jul 2020 22:44:03 +0200
From:   Arnd Bergmann <arnd@...db.de>
To:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc:     Daniel Gutson <daniel@...ypsium.com>,
        Derek Kiernan <derek.kiernan@...inx.com>,
        Tudor Ambarus <tudor.ambarus@...rochip.com>,
        Miquel Raynal <miquel.raynal@...tlin.com>,
        Richard Weinberger <richard@....at>,
        Vignesh Raghavendra <vigneshr@...com>,
        Mika Westerberg <mika.westerberg@...ux.intel.com>,
        Mauro Carvalho Chehab <mchehab+huawei@...nel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        Richard Hughes <hughsient@...il.com>,
        Alex Bazhaniuk <alex@...ypsium.com>
Subject: Re: [PATCH] [PATCH] Firmware security information in SYSFS

On Tue, Jul 21, 2020 at 8:26 PM Greg Kroah-Hartman
<gregkh@...uxfoundation.org> wrote:
> On Tue, Jul 21, 2020 at 01:27:27PM -0300, Daniel Gutson wrote:
> > On Tue, Jul 21, 2020 at 7:52 AM Greg Kroah-Hartman <gregkh@...uxfoundation.org> wrote:
> > > > > If so, great, it should be a "class", as that way it is independent of
> > > > > any hardware type, right?  Classes show how devices talk to userspace
> > > in
> > > > > a common way (input, tty, led, block, etc.)  So why is this any
> > > > > different from that?
> > > > >
> > > >
> > > > Are you suggesting to create a new class, or use an existing one?
> > >
> > > Probably a new one, unless you can find an existing one that would fit?
> > >
> >
> > IIUC, Arnd Bergmann proposed that I create a class for each device driver
> > (in this case,
> > for the intel-spi, though I think the class would be spi-nor) and add
> > attributes to it.
> > In such a case, your proposal and his are different, mutually exclusive.
>
> Classes should be driver agnositic, and you should not have a single
> class per driver, as that is pretty pointless.

Yes, that was of course my suggestion as well.  The class is how the
interface is shown to user space, and each driver that can provide the
functionality would have to register an instance of the class device per
physical device.

> > For me it's easier and makes more sense to have a class for, say,
> > firmware-security (if I understood you correctly).
>
> I still think that's a horrible name, as that is not what you are
> describing here, but sure, a single class is good.

Right, neither the word "firmware" nor the word "security" gives it
any sufficiently specific meaning.

      Arnd

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ