From: James Bottomley <jejb@linux.ibm.com>
To: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: grub-devel@gnu.org, dovmurik@linux.vnet.ibm.com,
Dov.Murik1@il.ibm.com, ashish.kalra@amd.com,
brijesh.singh@amd.com, tobin@ibm.com, david.kaplan@amd.com,
jon.grimm@amd.com, thomas.lendacky@amd.com, frankeh@us.ibm.com
Subject: Re: [PATCH 2/3] cryptodisk: add OS provided secret support
Date: Fri, 13 Nov 2020 07:49:05 -0800 [thread overview]
Message-ID: <2b26a86217576e5fc90234f3d99b274d81e3c571.camel@linux.ibm.com> (raw)
In-Reply-To: <20201113132309.GN3251@work-vm>
On Fri, 2020-11-13 at 13:23 +0000, Dr. David Alan Gilbert wrote:
> * James Bottomley (jejb@linux.ibm.com) wrote:
[...]
> > @@ -1117,11 +1151,28 @@ grub_cmd_cryptomount (grub_extcmd_context_t
> > ctxt, int argc, char **args)
> > else if (state[1].set || (argc == 0 && state[2].set))
> > {
> > search_uuid = NULL;
> > + os_passwd = NULL;
> > check_boot = state[2].set;
> > grub_device_iterate (&grub_cryptodisk_scan_device, NULL);
> > search_uuid = NULL;
> > return GRUB_ERR_NONE;
> > }
> > + else if (state[3].set)
> > + {
> > + /* do we have a secret? */
> > + if (os_secret_area == NULL)
> > + return grub_error (GRUB_ERR_INVALID_COMMAND, "No OS secret is
> > provisioned");
> > +
> > + os_passwd = os_secret_area;
> > + search_uuid = NULL;
> > + grub_device_iterate (&grub_cryptodisk_scan_device, NULL);
> > + os_passwd = NULL;
> > +
> > + if (!have_it)
> > + return grub_error (GRUB_ERR_ACCESS_DENIED, "SEV password failed
> > to unlock any volumes");
>
> That's the only place you break the generality and admit to it being
> a SEV password I think.
Yes, I think it reflects the fact that there's likely a missing
callback into the secret setting module so the message can be very
specific and also that module can handle the secret destruction policy.
James
next prev parent reply other threads:[~2020-11-13 15:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-13 1:22 [PATCH 0/3] Add ability to use SEV provisioned secrets for disk decryption James Bottomley
2020-11-13 1:22 ` [PATCH 1/3] cryptodisk: make the password getter and additional argument to recover_key James Bottomley
2020-11-13 6:02 ` Glenn Washburn
2020-11-13 15:44 ` James Bottomley
2020-11-13 1:22 ` [PATCH 2/3] cryptodisk: add OS provided secret support James Bottomley
2020-11-13 13:23 ` Dr. David Alan Gilbert
2020-11-13 15:49 ` James Bottomley [this message]
2020-11-13 1:22 ` [PATCH 3/3] efi: Add API for retrieving the AMD SEV injected secret for cryptodisk James Bottomley
2020-11-13 17:50 ` [PATCH 0/3] Add ability to use SEV provisioned secrets for disk decryption Dr. David Alan Gilbert
2020-11-13 17:58 ` James Bottomley
2020-11-13 18:21 ` Dr. David Alan Gilbert
2020-11-13 19:26 ` James Bottomley
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-all 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=2b26a86217576e5fc90234f3d99b274d81e3c571.camel@linux.ibm.com \
--to=jejb@linux.ibm.com \
--cc=Dov.Murik1@il.ibm.com \
--cc=ashish.kalra@amd.com \
--cc=brijesh.singh@amd.com \
--cc=david.kaplan@amd.com \
--cc=dgilbert@redhat.com \
--cc=dovmurik@linux.vnet.ibm.com \
--cc=frankeh@us.ibm.com \
--cc=grub-devel@gnu.org \
--cc=jon.grimm@amd.com \
--cc=thomas.lendacky@amd.com \
--cc=tobin@ibm.com \
/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