Package: dropbear
Version: 2012.55-1.3
Severity: normal

Hi,

I've been using dropbear to unlock my encrypted root partition remotely via
SSH. This works quite fine in general, however, I've stumbled upon the
following shortcoming:

Dropbear configures the network using configure_networking() from
initramfs-tools but never deconfigures it.

The initscript networking which is part of the package ifupdown runs ifup
during boot which then complains that the interface is already configured.
This is quite annoying because I want to use a different network
configuration in the initramfs compared to the normal system.

configure_networking() uses ipconfig from package klibc-utils to configure
the network. I took a look at the source code of ipconfig and found code
that brings the interface up (netdev_up()) as well as down (netdev_down()).
However, the latter isn't called from anywhere, so it's essentially dead
code.

In my opinion a fix would require work being done in the following three
packages:

 * klibc-utils - A command line option to bring the interfaces down is
needed.
 * initramfs-tools - A function to deconfigure networking is needed.
 * dropbear - The introduced function in initramfs-tools must be called to
deconfigure networking.

Regards,

Lukas

Reply via email to