Activity log for bug #1564948

Date Who What changed Old value New value Message
2016-04-01 15:00:53 Hugh Saunders bug added bug
2016-04-04 09:42:54 Launchpad Janitor branch linked lp:~hughsaunders/cirros/dropbearkey
2016-04-04 15:23:01 Hugh Saunders cirros: assignee Hugh Saunders (hughsaunders)
2016-04-04 15:24:25 Hugh Saunders description If one of the key files in /etc/dropbear is empty, dropbear fails to start, but the init script reports that the daemon started ok. $ tail -f /var/log/messages & $ > /etc/dropbear/dropbear_rsa_host_key $ /etc/init.d/S50dropbear restart Stopping dropbear sshd: OK Starting dropbear sshd: OK Apr 1 15:55:34 cirros authpriv.info dropbear[428]: Premature exit: Terminated by signal Apr 1 15:55:34 cirros authpriv.info dropbear[431]: Premature exit: Bad buf_getptr I appreciate that the keyfile shouldn't be emtpy, but in the case that it is, the init script should probably notice that and generate a valid one. This should probably be expanded to the more general whenever a key file isn't valid. This could be tested with the dropbearconvert utility. If one of the key files in /etc/dropbear is empty, dropbear fails to start, but the init script reports that the daemon started ok. $ tail -f /var/log/messages & $ > /etc/dropbear/dropbear_rsa_host_key $ /etc/init.d/S50dropbear restart Stopping dropbear sshd: OK Starting dropbear sshd: OK Apr 1 15:55:34 cirros authpriv.info dropbear[428]: Premature exit: Terminated by signal Apr 1 15:55:34 cirros authpriv.info dropbear[431]: Premature exit: Bad buf_getptr I appreciate that the keyfile shouldn't be emtpy, but in the case that it is, the init script should probably notice that and generate a valid one. This should probably be expanded to the more general whenever a key file isn't valid. This could be tested with the dropbearkey utility.
2016-04-05 06:58:27 Hugh Saunders cirros: status New In Progress
2016-04-14 14:19:46 Launchpad Janitor branch linked lp:~hughsaunders/cirros/dropbearinit
2016-06-29 13:25:51 Launchpad Janitor branch linked lp:cirros
2016-06-29 14:15:18 Scott Moser cirros: importance Undecided Medium
2016-06-29 14:15:18 Scott Moser cirros: status In Progress Fix Committed
2017-01-18 19:46:55 Launchpad Janitor merge proposal linked https://code.launchpad.net/~andrea-frittoli/cirros/+git/cirros/+merge/315067
2017-02-08 11:39:06 Launchpad Janitor merge proposal linked https://code.launchpad.net/~andrea-frittoli/cirros/+git/cirros/+merge/316686
2017-02-08 15:07:51 Launchpad Janitor merge proposal linked https://code.launchpad.net/~andrea-frittoli/cirros/+git/cirros/+merge/316711