From: "Jan Lübbe" <jlu@pengutronix.de>
To: David Howells <dhowells@redhat.com>
Cc: Mimi Zohar <zohar@linux.ibm.com>,
Jarkko Sakkinen <jarkko@kernel.org>,
Ahmad Fatoum <a.fatoum@pengutronix.de>,
James Bottomley <jejb@linux.ibm.com>,
keyrings@vger.kernel.org, Sumit Garg <sumit.garg@linaro.org>,
linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-security-module@vger.kernel.org, kernel@pengutronix.de
Subject: Re: Migration to trusted keys: sealing user-provided key?
Date: Mon, 01 Feb 2021 16:50:58 +0100 [thread overview]
Message-ID: <6b362abd95b116e26c65809a3a1525c7951ed0bd.camel@pengutronix.de> (raw)
In-Reply-To: <4153718.1612179361@warthog.procyon.org.uk>
On Mon, 2021-02-01 at 11:36 +0000, David Howells wrote:
> Jan Lübbe <jlu@pengutronix.de> wrote:
>
> > ... But at this point, you can still do 'keyctl read' on that key, exposing
> > the key material to user space.
>
> I wonder if it would help to provide a keyctl function to mark a key as being
> permanently unreadable - so that it overrides the READ permission bit.
>
> Alternatively, you can disable READ and SETATTR permission - but that then
> prevents you from removing other perms if you want to :-/
That would mean using user type keys, right? Then we'd still have the core
problem how a master key can be protected against simply reading it from
flash/disk, as it would be unencrypted in this scenario.
Maybe a bit of background:
We're looking at the trusted/encrypted keys because we want to store the key
material in an encrypted format, only loadable into the same system where they
were generated and only if that's in a trusted state (to solve the master key
problem above).
This binding can be done with trusted keys via a TPM (and soon with Sumit's OP-
TEE backend, or later based on SoC-specific hardware like NXP's CAAM). In the
OP-TEE/CAAM case, the bootloader would ensure that the backend can only be used
when booting a correctly authenticated kernel.
Of course, that's not as flexible as TPMs with a custom policy, but much simpler
and a good fit for many embedded use-cases.
Best regards,
Jan Lübbe
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2021-02-01 15:53 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-28 17:31 Migration to trusted keys: sealing user-provided key? Ahmad Fatoum
2021-01-30 17:53 ` Jarkko Sakkinen
2021-01-30 18:07 ` James Bottomley
[not found] ` <d1bed49f89495ceb529355cb41655a208fdb2197.camel@linux.ibm.com>
2021-01-31 14:14 ` Jan Lübbe
2021-01-31 18:09 ` James Bottomley
2021-02-02 12:15 ` Sumit Garg
2021-02-02 12:34 ` Jan Lübbe
2021-02-03 11:50 ` Sumit Garg
2021-02-03 13:46 ` Jan Lübbe
2021-02-04 5:30 ` Sumit Garg
[not found] ` <d4eeefa0c13395e91850630e22d0d9e3690f43ac.camel@linux.ibm.com>
2021-02-01 15:31 ` Jan Lübbe
2021-02-01 16:11 ` Mimi Zohar
2021-02-01 16:38 ` Jan Lübbe
2021-02-01 19:46 ` Mimi Zohar
2021-02-08 14:38 ` Jan Lübbe
2021-02-08 21:50 ` Mimi Zohar
2021-02-09 7:16 ` Jan Lübbe
2021-02-01 11:36 ` David Howells
2021-02-01 15:50 ` Jan Lübbe [this message]
2021-02-01 17:04 ` David Howells
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=6b362abd95b116e26c65809a3a1525c7951ed0bd.camel@pengutronix.de \
--to=jlu@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=dhowells@redhat.com \
--cc=jarkko@kernel.org \
--cc=jejb@linux.ibm.com \
--cc=kernel@pengutronix.de \
--cc=keyrings@vger.kernel.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=sumit.garg@linaro.org \
--cc=zohar@linux.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;
as well as URLs for NNTP newsgroup(s).