Package: dnsmasq
Version: 2.76-5
Severity: normal

A patch like the following is needed for correct operation on SE Linux systems
that aren't using systemd.  This sets the correct context on that directory,
running restorecon multiple times is not a problem and running it when SE
Linux is disabled is also not a problem.

--- /etc/init.d/dnsmasq.orig    2017-08-15 13:25:33.454535140 +1000
+++ /etc/init.d/dnsmasq 2017-08-16 14:36:30.297443148 +1000
@@ -127,6 +127,7 @@
            mkdir /run/dnsmasq || return 2
            chown dnsmasq:nogroup /run/dnsmasq || return 2
         fi
+       [ -x /sbin/restorecon ] && /sbin/restorecon /run/dnsmasq
 
        start-stop-daemon --start --quiet --pidfile /run/dnsmasq/$NAME.pid 
--exec $DAEMON --test > /dev/null || return 1
        start-stop-daemon --start --quiet --pidfile /run/dnsmasq/$NAME.pid 
--exec $DAEMON -- \


-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1), LANGUAGE=en_AU:en 
(charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages dnsmasq depends on:
ii  dnsmasq-base         2.76-5+b1
ii  init-system-helpers  1.48
ii  netbase              5.4

dnsmasq recommends no packages.

Versions of packages dnsmasq suggests:
pn  resolvconf  <none>

-- Configuration Files:
/etc/dnsmasq.conf changed [not included]
/etc/init.d/dnsmasq changed [not included]

-- no debconf information

Reply via email to