linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mimi Zohar <zohar@linux.ibm.com>
To: Lakshmi Ramasubramanian <nramas@microsoft.com>,
	"linux-integrity@vger.kernel.org"
	<linux-integrity@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Portable Executable (PE) Signature Validation and Measurement for KEXEC system call using IMA
Date: Mon, 25 Mar 2019 15:27:44 -0400	[thread overview]
Message-ID: <1553542064.3929.69.camel@linux.ibm.com> (raw)
In-Reply-To: <BYAPR21MB1301CBCD4956476F8F2F0FC4C3430@BYAPR21MB1301.namprd21.prod.outlook.com>

Hi Lakshmi,

On Fri, 2019-03-22 at 17:39 +0000, Lakshmi Ramasubramanian wrote:
> Hello,
> 
> When loading the new kernel image file for executing KEXEC system call, 
> we would like to verify that the kernel image file is signed and 
> the signer certificate is valid.

I'm not sure what is meant by "and the signer certificate is valid".

The kexec kernel image signature can be verified by keys either on the
IMA keyring or the platform keyring.  The current method of verifying
keys being added to the IMA keyring is by requiring them to be signed
by a key on the builtin trusted keyring.  This provides a signature
chain of trust from boot to the kernel, based on a HW root of trust,
and then transitions to the kernel image's embedded keys.  You
probably already know as to why/how the platform keys are trusted.

> 
> If the kernel image file is in Portable Executable (PE) format we want to 
> validate the PE Signature and measure the signer X.509 certificate 
> (Extend as part of IMA Template defaulting to PCR 10, if not otherwise set, 
>  and the IMA measurement log).

How/when do you plan to "measure the signer X.509 certificate"?  Is
this when the certificate is being loaded onto the keyring or at use?
 I'm not sure how much of the certificate is available once loaded
onto the keyring.

> 
> We plan to use Integrity Measurement Architecture (IMA) for the above.
> 
> Please let us know if anyone is already working on a patch set
> for such a functionality.
> 
> I am aware of the work that Thiago Jung Bauermann @ IBM is doing for 
> "Appended signatures support for IMA appraisal" 
> (Web link given below)
> 
>     https://lkml.org/lkml/2018/12/12/1049

Other than Thiago, I'm not aware of anyone else working on this.
 Thiago is actively working on these patches and will be re-posting
them shortly.

Mimi


  parent reply	other threads:[~2019-03-25 19:27 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-22 17:39 Portable Executable (PE) Signature Validation and Measurement for KEXEC system call using IMA Lakshmi Ramasubramanian
2019-03-25 17:52 ` Lakshmi Ramasubramanian
2019-03-25 19:27 ` Mimi Zohar [this message]
2019-03-25 21:00   ` Lakshmi Ramasubramanian

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=1553542064.3929.69.camel@linux.ibm.com \
    --to=zohar@linux.ibm.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nramas@microsoft.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;
as well as URLs for NNTP newsgroup(s).