Package: prosody
Version: 0.9.12-1
Severity: normal
Tags: patch

The following patch will give the pid directory the coorect context when
running SE Linux and have no affect when not running SE Linux.

--- /etc/init.d/prosody.orig    2017-04-06 23:36:36.588621558 +1000
+++ /etc/init.d/prosody 2017-04-06 23:37:16.455574733 +1000
@@ -40,6 +40,7 @@
 start_prosody () {
        mkdir -p `dirname $PIDFILE`
        chown prosody:adm `dirname $PIDFILE`
+       [ -x /sbin/restorecon ] && /sbin/restorecon `dirname $PIDFILE`
        if start-stop-daemon --start --quiet --pidfile "$PIDFILE" \
                --chuid "$USER" --oknodo --user "$USER" --name lua5.1 \
                $(start_opts) --startas "$DAEMON"; 

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-1-amd64 (SMP w/2 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 prosody depends on:
ii  adduser                             3.115
ii  libc6                               2.24-9
ii  libidn11                            1.33-1
ii  libssl1.1                           1.1.0e-1
ii  lsb-base                            9.20161125
ii  lua-expat [lua5.1-expat]            1.3.0-4
ii  lua-filesystem [lua5.1-filesystem]  1.6.3-1
ii  lua-sec [lua5.1-sec]                0.6-3
ii  lua-socket [lua5.1-socket]          3.0~rc1+git+ac3201d-3
ii  lua5.1                              5.1.5-8.1+b2
ii  ssl-cert                            1.0.38

Versions of packages prosody recommends:
iu  lua-event [lua5.1-event]  0.4.3-2

Versions of packages prosody suggests:
pn  lua-dbi-mysql       <none>
pn  lua-dbi-postgresql  <none>
pn  lua-dbi-sqlite3     <none>
pn  lua-zlib            <none>

-- Configuration Files:
/etc/init.d/prosody changed [not included]
/etc/prosody/prosody.cfg.lua changed [not included]

-- no debconf information

Reply via email to