Package: mon
Version: 1.2.0-9
Severity: normal

d       /var/run/mon    0755    mon mon

Please use restorecon in a manner like the below patch when creating a 
directory in
the init script.  This gives it the correct context on a SE Linux system but 
makes no
change on a non-SE system.  Also please consider adding something like the 
above in
tmpfiles.d configuration for systemd systemd.

--- mon.orig    2016-04-26 00:53:00.970592471 +1000
+++ mon 2016-04-26 00:53:35.303449143 +1000
@@ -108,6 +108,7 @@
                if [ ! -d "/var/run/mon" ] ; then
                        mkdir -p /var/run/mon
                        chown mon:mon /var/run/mon
+                       [ -x /sbin/restorecon ] && /sbin/restorecon /var/run/mon
                fi
 
                start-stop-daemon --start --quiet --pidfile $PIDFILE \

-- System Information:
Debian Release: 8.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mon depends on:
ii  adduser              3.113+nmu3
ii  libc6                2.19-18+deb8u4
ii  libtime-period-perl  1.20-8
ii  mon-client           1.2.0-2

Versions of packages mon recommends:
pn  fping                           <none>
pn  libauthen-pam-perl              <none>
pn  libcrypt-ssleay-perl            <none>
ii  libfilesys-diskspace-perl       0.05-16.1
ii  libnet-dns-perl                 0.81-2
pn  libnet-ldap-perl                <none>
pn  libnet-telnet-perl              <none>
pn  libsnmp-perl                    <none>
pn  libstatistics-descriptive-perl  <none>
pn  libtime-parsedate-perl          <none>
ii  perl-modules [libnet-perl]      5.20.2-3+deb8u4

Versions of packages mon suggests:
ii  mon-contrib  1.0+dfsg-3

-- Configuration Files:
/etc/init.d/mon changed [not included]
/etc/mon/mon.cf changed [not included]

-- no debconf information

Reply via email to