diff --git a/debian/changelog b/debian/changelog index a4fa7cb..f755f15 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ dnsmasq (2.80-1) unstable; urgency=low * New upstream. * Provide usr/lib/tmpfiles.d/dnsmasq.conf. (closes: #872396) + * Run restorecon on /run/dnsmasq for SE Linux. (closes: #872397) -- Simon Kelley Mon, 17 Sep 2018 23:11:25 +0000 diff --git a/debian/init b/debian/init index bafbca1..5e5648c 100644 --- a/debian/init +++ b/debian/init @@ -127,7 +127,8 @@ start() 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 -- \ -x /run/dnsmasq/$NAME.pid \