public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Gerd Hoffmann" <kraxel@redhat.com>
To: devel@edk2.groups.io, chat@joursoir.net
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>,
	 Jiewen Yao <jiewen.yao@intel.com>,
	Jordan Justen <jordan.l.justen@intel.com>,
	 Rebecca Cran <rebecca@bsdio.com>
Subject: Re: [edk2-devel] [PATCH] OvmfPkg/README: Document Secure Boot
Date: Mon, 19 Jun 2023 13:51:07 +0200	[thread overview]
Message-ID: <syqiwonmu4c4jtorvfvrsymm4mtj4xj2gnsku7ykqpd6tl52qk@qkmllkvi26lq> (raw)
In-Reply-To: <20230616005155.275150a1@reeva>

On Fri, Jun 16, 2023 at 12:51:55AM +0400, Joursoir wrote:
> +cc to maintainers
> 
> On Sat, 3 Jun 2023 01:44:40 +0400
> "Joursoir" <chat@joursoir.net> wrote:
> 
> > Add the new section for Secure Boot.
> > 
> > Signed-off-by: Alexander Goncharov <chat@joursoir.net>
> > ---
> >  OvmfPkg/README | 36 ++++++++++++++++++++++++++++++++++++
> >  1 file changed, 36 insertions(+)
> > 
> > diff --git a/OvmfPkg/README b/OvmfPkg/README
> > index 0a408abf01..e106e19818 100644
> > --- a/OvmfPkg/README
> > +++ b/OvmfPkg/README
> > @@ -120,6 +120,42 @@ $ OvmfPkg/build.sh -a X64 qemu -cdrom
> > /path/to/disk-image.iso To build a 32-bit OVMF without debug messages
> > using GCC 4.8: $ OvmfPkg/build.sh -a IA32 -b RELEASE -t GCC48
> >  
> > +=== Secure Boot ===
> > +
> > +Secure Boot is a security feature that ensures only trusted and
> > digitally +signed software is allowed to run during the boot process.
> > +
> > +* In order to support Secure Boot, OVMF must be built with the
> > +  "-D SECURE_BOOT_ENABLE" option.

Also note that you need either a read-only varstore or SMM support,
otherwise it is trivial to bypass secure boot by writing directly to
flash varstore.

> > +* By default, OVMF is not shipped with any SecureBoot keys installed.
> > The user
> > +  need to install them with "Secure Boot Configuration" utility in
> > the firmware
> > +  UI, or enroll the default UEFI keys using the
> > OvmfPkg/EnrollDefaultKeys app. +

Alternatively use https://gitlab.com/kraxel/virt-firmware

take care,
  Gerd


      reply	other threads:[~2023-06-19 11:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1765BEFF9799FDDB.7352@groups.io>
2023-06-15 20:51 ` [edk2-devel] [PATCH] OvmfPkg/README: Document Secure Boot Joursoir
2023-06-19 11:51   ` Gerd Hoffmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=syqiwonmu4c4jtorvfvrsymm4mtj4xj2gnsku7ykqpd6tl52qk@qkmllkvi26lq \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox