generic-poky/meta/recipes-connectivity
Joshua Watt ebb625a140 openssh: Fix key generation with systemd
106b59d9 broke SSH host key generation when systemd and a read-only root file
system are in use because there isn't a way for systemd to get the optional
weak assigment of SYSCONFDIR from /etc/default/sshd and still provide a default
value if it is not specified. Instead, move the logic for determining if keys
need to be created to a helper script that both the SysV init script and the
systemd unit file can reference.

This does mean that the systemd unit file can't check for file existence to
know if it should start the service, but it wasn't able to do that correctly
anyway anymore. This should be a problem since the serivce is only run once per
power cycle by systemd, and should exit quickly if the keys already exist

(From OE-Core rev: 73f1397d86f33abace089cc9a28e859b47bb7b6c)

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>

(cherry picked from commit 7e49c5879862253ae1b6a26535d07a2740a95798)
Signed-off-by: André Draszik <adraszik@tycoint.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-11-05 22:39:48 +00:00
..
avahi avahi: Don't remove users/groups in postrm 2016-11-04 12:50:54 +00:00
bind bind: Use correct python interpreter path 2017-08-31 17:57:12 +01:00
bluez5 bluez5.inc: set CVE_PRODUCT to bluez 2017-08-29 11:57:27 +01:00
connman connman: Fix for CVE-2017-12865 2017-08-30 11:12:30 +01:00
dhcp dhcp: 4.3.4 -> 4.3.5 2016-12-08 10:31:29 +00:00
iproute2 iproute2: upgrade to 4.10.0 2017-03-01 23:27:10 +00:00
irda-utils irda-utils: Fix header inclusions 2016-01-24 09:40:29 +00:00
iw iw: upgrade to 4.9 2016-11-30 15:48:06 +00:00
libnss-mdns libnss-mdns: Check for nss.h before using 2016-02-02 14:44:16 +00:00
libpcap libpcap: apply fix from upstream to fix build race 2017-07-27 22:36:44 +01:00
mobile-broadband-provider-info mobile-broadband-provider-info: update to tagged release 20151214 2015-12-28 09:25:16 +00:00
neard neard: Fix parallel build issue 2017-03-21 22:39:17 +00:00
nfs-utils recipes: Make use of the new bb.utils.filter() function 2017-03-01 11:17:45 +00:00
ofono recipes: Make use of the new bb.utils.filter() function 2017-03-01 11:17:45 +00:00
openssh openssh: Fix key generation with systemd 2017-11-05 22:39:48 +00:00
openssl openssl: Bump SONAME to match the ABI 2017-04-21 08:22:09 +01:00
portmap portmap: Point to tirpc headers and libraries on musl 2016-01-24 09:40:30 +00:00
ppp ppp: update SRC_URI 2017-01-26 10:44:27 +00:00
ppp-dialin Remove $COREBASE/LICENSE from LIC_FILES_CHKSUM 2016-10-28 16:15:18 +01:00
resolvconf resolvconf: upgrade to 1.79 2016-06-15 08:35:00 +01:00
socat socat: 1.7.3.1 -> 1.7.3.2 2017-02-15 20:06:42 -08:00
wireless-tools wireless-tools: Update URLs 2017-03-01 23:27:10 +00:00
wpa-supplicant wpa_supplicant: fix WPA2 key replay security bug 2017-10-16 23:47:01 +01:00