]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
ssh-pregen-hostkeys: Limit to qemu machines by default
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 4 May 2024 09:48:01 +0000 (10:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 13 May 2024 15:28:33 +0000 (16:28 +0100)
There are potential security issues from using pre-generated host keys. We made
the recipe available for autobuilder testing purposes but concerns remain about
how easily this could end up in production.

I thought we'd already done this, but limit the recipe to qemu* machines,
which means any real hardware trying to use it will need to be a bit more
explicit about it and specifically enable it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/ssh-pregen-hostkeys/ssh-pregen-hostkeys_1.0.bb

index ede18a003170918818b41d8c5b7f956f166ea462..4a62ddacd5f2c3ae208b4b77dd336965cdbd00a8 100644 (file)
@@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 INHIBIT_DEFAULT_DEPS = "1"
 
+COMPATIBLE_MACHINE = "^qemu.*$"
+
 do_install () {
        install -d ${D}${sysconfdir}/dropbear
        install ${UNPACKDIR}/dropbear_rsa_host_key -m 0600 ${D}${sysconfdir}/dropbear/
@@ -16,4 +18,4 @@ do_install () {
        install ${UNPACKDIR}/openssh/* ${D}${sysconfdir}/ssh/
        chmod 0600 ${D}${sysconfdir}/ssh/*
        chmod 0644 ${D}${sysconfdir}/ssh/*.pub
-}
\ No newline at end of file
+}