Package: nbd-server
Version: 1:3.15.2-2
Severity: important

nbd-server silently ignores listenaddr in configuration file and listen
on '*'.

Steps to reproduce:
1. Set up configuration with listenaddr = 127.0.0.1 (see example below)
2. Run nbd-server

Expected result:

`netstat -lnp|grep nbd` should show nbd listening on 127.0.0.1

Actual result:

tcp6  0 0 :::10809   :::*LISTEN      27452/nbd-server

Example of configuration file /etc/nbd-server/config:

[generic]
# If you want to run everything as root rather than the nbd user, you
# may either say "root" in the two following lines, or remove them
# altogether. Do not remove the [generic] section, however.
        user = nbd
        group = nbd
        includedir = /etc/nbd-server/conf.d

# What follows are export definitions. You may
# create as much of them as
# you want, but the section header has to be
# unique.
[backup]
        exportname = /backup.img
        listenaddr = 127.0.0.1


-- System Information:
Debian Release: stretch/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nbd-server depends on:
ii  adduser                3.115
ii  debconf [debconf-2.0]  1.5.59
ii  libc6                  2.24-6
ii  libglib2.0-0           2.50.2-2
ii  libgnutls30            3.5.6-7
ii  ucf                    3.0036

nbd-server recommends no packages.

nbd-server suggests no packages.

-- debconf information:
* nbd-server/filename: /backup.img
* nbd-server/number: 1
* nbd-server/name: backup

Reply via email to