* [PATCH] kernel.bbclass: fix installation of modules signing certificates
@ 2019-07-28 10:01 Dmitry Eremin-Solenikov
2019-09-18 22:57 ` Nicolas Dechesne
0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Eremin-Solenikov @ 2019-07-28 10:01 UTC (permalink / raw)
To: openembedded-core
From: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
If one has provided external key/certificate for modules signing, Kbuild
will skip creating signing_key.pem and will write only signing_key.x509
certificate. Thus we have to check for .x509 file existence rather than
.pem one.
Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
---
meta/classes/kernel.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index a60e15b57814..bf3674238f02 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -454,7 +454,7 @@ do_shared_workdir () {
cp .config $kerneldir/
mkdir -p $kerneldir/include/config
cp include/config/kernel.release $kerneldir/include/config/kernel.release
- if [ -e certs/signing_key.pem ]; then
+ if [ -e certs/signing_key.x509 ]; then
# The signing_key.* files are stored in the certs/ dir in
# newer Linux kernels
mkdir -p $kerneldir/certs
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kernel.bbclass: fix installation of modules signing certificates
2019-07-28 10:01 [PATCH] kernel.bbclass: fix installation of modules signing certificates Dmitry Eremin-Solenikov
@ 2019-09-18 22:57 ` Nicolas Dechesne
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Dechesne @ 2019-09-18 22:57 UTC (permalink / raw)
To: Dmitry Eremin-Solenikov, akuster808
Cc: Patches and discussions about the oe-core layer
hi Armin,
On Sun, Jul 28, 2019 at 12:01 PM Dmitry Eremin-Solenikov
<dbaryshkov@gmail.com> wrote:
>
> From: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
>
> If one has provided external key/certificate for modules signing, Kbuild
> will skip creating signing_key.pem and will write only signing_key.x509
> certificate. Thus we have to check for .x509 file existence rather than
> .pem one.
>
> Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin-solenikov@mentor.com>
This patch applies cleanly on warrior and thud, and it's a bug fix,
when the use provides its own private certificate to sign kernel
modules. I have spent quite a bit of time in this area this week,
sadly i was working with thud branch, fixed my issue and found out
that master didn't have the issue!
Any chance this can be pulled in thud and warrior? Feel free to add my
Signed-off tag , once again cherry-pick just works.
>
> ---
> meta/classes/kernel.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
> index a60e15b57814..bf3674238f02 100644
> --- a/meta/classes/kernel.bbclass
> +++ b/meta/classes/kernel.bbclass
> @@ -454,7 +454,7 @@ do_shared_workdir () {
> cp .config $kerneldir/
> mkdir -p $kerneldir/include/config
> cp include/config/kernel.release $kerneldir/include/config/kernel.release
> - if [ -e certs/signing_key.pem ]; then
> + if [ -e certs/signing_key.x509 ]; then
> # The signing_key.* files are stored in the certs/ dir in
> # newer Linux kernels
> mkdir -p $kerneldir/certs
> --
> 2.20.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-18 22:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-28 10:01 [PATCH] kernel.bbclass: fix installation of modules signing certificates Dmitry Eremin-Solenikov
2019-09-18 22:57 ` Nicolas Dechesne
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox