[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171204195155.GU729@wotan.suse.de>
Date: Mon, 4 Dec 2017 20:51:55 +0100
From: "Luis R. Rodriguez" <mcgrof@...nel.org>
To: Alan Cox <gnomes@...rguk.ukuu.org.uk>
Cc: "Luis R. Rodriguez" <mcgrof@...nel.org>,
"AKASHI, Takahiro" <takahiro.akashi@...aro.org>,
Mimi Zohar <zohar@...ux.vnet.ibm.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Jan Blunck <jblunck@...radead.org>,
Julia Lawall <julia.lawall@...6.fr>,
David Howells <dhowells@...hat.com>,
Marcus Meissner <meissner@...e.de>, Gary Lin <GLin@...e.com>,
linux-security-module@...r.kernel.org,
linux-efi <linux-efi@...r.kernel.org>,
linux-kernel@...r.kernel.org, Matthew Garrett <mjg59@...gle.com>
Subject: Re: Firmware signing -- Re: [PATCH 00/27] security, efi: Add kernel
lockdown
On Mon, Nov 13, 2017 at 09:08:48PM +0000, Alan Cox wrote:
> On Mon, 13 Nov 2017 18:42:50 +0100
> "Luis R. Rodriguez" <mcgrof@...nel.org> wrote:
>
> > On Sat, Nov 11, 2017 at 02:32:40AM +0000, Alan Cox wrote:
> > > > My assumption here is:
> > > > 1) there are some less important and so security-insensitive firmwares,
> > > > by which I mean that such firmwares won't be expected to be signed in
> > > > terms of vulnerability or integrity.
> > > > (I can't give you examples though.)
> > > > 2) firmware's signature will be presented separately from the firmware
> > > > blob itself. Say, "firmware.bin.p7s" for "firmware.bin"
> > >
> > > For x86 at least any firmware on any system modern enough to support
> > > 'secure' boot should already be signed. The only major exception is
> > > likely to be for things like random USB widgets.
> >
> > Alan, the firmware being considered here is /lib/firmware firmware, which
> > is not signed today. Its unclear to me how you mean that /lib/firmware files
> > are already signed or verified today
>
> By the hardware they get loaded onto. Pretty much all of the hardware on
> PC class systems at least is signed and checked by the platform or the
> device itself. For a 'secure' boot era PC that's pretty much everything
> except USB toys and FPGA.
>
> So you don't actually need to sign a lot of PC class firmware because
> it's already signed.
It would seem that this logic can trump the need for /lib/firmware signing. And
for users where this is *not done* they can open code it, just as is being done
for cfg80211 to help a new kernel config replace CRDA. Additionally for non-UEFI
platforms which *also* need firmware signing, one viable option is to rely
on IMA.
If we have enough open-coded uses similar to cfg80211 we can revisit this
question later.
I am curious though, is the above notion of having hardware require signed
firmware an implication brought down by UEFI? If so do you have any pointers
to where this is stipulated? Or is it just a best practice we assume some
manufacturers are implementing?
Luis
Powered by blists - more mailing lists