diff options
-rw-r--r-- | meta/recipes-core/dropbear/dropbear.inc | 3 | ||||
-rw-r--r-- | meta/recipes-core/dropbear/dropbear/dropbear.default | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc index a5dcab882b..2e2fbc15af 100644 --- a/meta/recipes-core/dropbear/dropbear.inc +++ b/meta/recipes-core/dropbear/dropbear.inc | |||
@@ -19,6 +19,7 @@ SRC_URI = "http://matt.ucc.asn.au/dropbear/releases/dropbear-${PV}.tar.bz2 \ | |||
19 | file://dropbearkey.service \ | 19 | file://dropbearkey.service \ |
20 | file://dropbear@.service \ | 20 | file://dropbear@.service \ |
21 | file://dropbear.socket \ | 21 | file://dropbear.socket \ |
22 | file://dropbear.default \ | ||
22 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} " | 23 | ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} " |
23 | 24 | ||
24 | PAM_SRC_URI = "file://0005-dropbear-enable-pam.patch \ | 25 | PAM_SRC_URI = "file://0005-dropbear-enable-pam.patch \ |
@@ -62,6 +63,8 @@ do_install() { | |||
62 | ${D}${sbindir} \ | 63 | ${D}${sbindir} \ |
63 | ${D}${localstatedir} | 64 | ${D}${localstatedir} |
64 | 65 | ||
66 | install -m 0644 ${WORKDIR}/dropbear.default ${D}${sysconfdir}/default/dropbear | ||
67 | |||
65 | install -m 0755 dropbearmulti ${D}${sbindir}/ | 68 | install -m 0755 dropbearmulti ${D}${sbindir}/ |
66 | ln -s ${sbindir}/dropbearmulti ${D}${bindir}/dbclient | 69 | ln -s ${sbindir}/dropbearmulti ${D}${bindir}/dbclient |
67 | 70 | ||
diff --git a/meta/recipes-core/dropbear/dropbear/dropbear.default b/meta/recipes-core/dropbear/dropbear/dropbear.default new file mode 100644 index 0000000000..522453a86c --- /dev/null +++ b/meta/recipes-core/dropbear/dropbear/dropbear.default | |||
@@ -0,0 +1,2 @@ | |||
1 | # Disallow root logins by default | ||
2 | DROPBEAR_EXTRA_ARGS="-w" | ||