From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de, Marc Kleine-Budde <mkl@pengutronix.de>
Subject: Re: [ptxdist] [PATCH 2/3] ptxd_lib_imx_hab/template-barebox-imx-habv4/ptxdist-set-keys-hsm: convert to use the code signing group imx-habv4-srk
Date: Mon, 26 Apr 2021 12:25:58 +0200 [thread overview]
Message-ID: <20210426102558.bnud6cxhek3q5iqe@pengutronix.de> (raw)
In-Reply-To: <20210423060750.GD4162561@pengutronix.de>
On Fri, Apr 23, 2021 at 08:07:50AM +0200, Michael Olbrich wrote:
> On Mon, Apr 12, 2021 at 06:18:59PM +0200, Marc Kleine-Budde wrote:
> > This patch converts barebox and the barebox template to make use of code
> > signing groups as introduced in the previous patch.
> >
> > Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
> > ---
> > .../ptxdist-set-keys-hsm.sh | 6 ++-
> > .../templates/template-barebox-imx-habv4-make | 2 +-
> > scripts/lib/ptxd_lib_imx_hab.sh | 44 ++++++++++++++-----
> > 3 files changed, 39 insertions(+), 13 deletions(-)
> >
> > diff --git a/rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh b/rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh
> > index bcd531d69572..b94eff049eac 100755
> > --- a/rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh
> > +++ b/rules/templates/code-signing-provider/ptxdist-set-keys-hsm.sh
> > @@ -18,7 +18,7 @@ set_rauc_keys() {
> > }
> >
> > set_imx_habv4_keys() {
> > - local r
> > + local r g
> >
> > # HSM use case, assuming it contains only 1st CSF/IMG key
> > for i in 1 2 3 4; do
> > @@ -28,6 +28,10 @@ set_imx_habv4_keys() {
> > cs_append_ca_from_uri "${r}"
> > done
> >
> > + g="imx-habv4-srk"
> > + cs_define_group "${g}"
> > + cs_group_add_roles "${g}" "imx-habv4-srk1" "imx-habv4-srk2" "imx-habv4-srk3" "imx-habv4-srk4"
> > +
> > r="imx-habv4-csf1"
> > cs_define_role ${r}
> > cs_set_uri "${r}" "pkcs11:token=foo;object=csf1"
> > diff --git a/rules/templates/template-barebox-imx-habv4-make b/rules/templates/template-barebox-imx-habv4-make
> > index eb752c8349d9..cc825dc90292 100644
> > --- a/rules/templates/template-barebox-imx-habv4-make
> > +++ b/rules/templates/template-barebox-imx-habv4-make
> > @@ -74,7 +74,7 @@ $(STATEDIR)/barebox-@package@.compile:
> > @$(call targetinfo)
> >
> > @$(call world/env, BAREBOX_@PACKAGE@) \
> > - ptxd_make_imx_habv4_gen_table "imx-habv4-srk%d" 4
> > + ptxd_make_imx_habv4_gen_table imx-habv4-srk
>
> For this to work with the devel provider, host-ptx-code-signing-dev must be
> updated to create this group. I needs the same changes that you made to the
> code-signing-provider template above, right?
> Can you please add that and provide a new version for the PTXdist package?
And could you also add a bit of trivial documentation to
doc/dev_code_signing.rst so people see that it exists?
- Roland
--
Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next prev parent reply other threads:[~2021-04-26 10:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-12 16:18 [ptxdist] [PATCH 1/3] ptxd_lib_code_signing: introduce code signing groups Marc Kleine-Budde
2021-04-12 16:18 ` [ptxdist] [PATCH 2/3] ptxd_lib_imx_hab/template-barebox-imx-habv4/ptxdist-set-keys-hsm: convert to use the code signing group imx-habv4-srk Marc Kleine-Budde
2021-04-23 6:07 ` Michael Olbrich
2021-04-26 10:25 ` Roland Hieber [this message]
2021-04-12 16:19 ` [ptxdist] [PATCH 3/3] ptxd_lib_code_signing: cs_get_ca(): only output CA if existing Marc Kleine-Budde
2021-04-23 6:33 ` Michael Olbrich
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=20210426102558.bnud6cxhek3q5iqe@pengutronix.de \
--to=rhi@pengutronix.de \
--cc=mkl@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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