mirror of https://github.com/sipwise/rtpengine.git
*) Create dedicated rtpengine user in postinst and remove it in postrm. *) Use RuntimeDirectory= systemd unit config. *) Use dedicated user for /proc interface and set file umask to hide it from other users. *) Set owner and permissions on default directories used for call recording. Change-Id: I8e225b36d065d46da2489fb8286916371950f490pull/1439/head
parent
261e6a6503
commit
30c2de8e0f
@ -1,6 +1,7 @@
|
|||||||
CONFIG_FILE=/etc/rtpengine/rtpengine.conf
|
CONFIG_FILE=/etc/rtpengine/rtpengine.conf
|
||||||
# CONFIG_SECTION=rtpengine
|
# CONFIG_SECTION=rtpengine
|
||||||
PIDFILE=/run/ngcp-rtpengine-daemon.pid
|
PIDFILE=/run/rtpengine/ngcp-rtpengine-daemon.pid
|
||||||
MANAGE_IPTABLES=yes
|
MANAGE_IPTABLES=yes
|
||||||
#SET_USER=root
|
SET_USER=rtpengine
|
||||||
#SET_GROUP=root # GROUP only needs to be set if USER is not set or if the user isn't in the group
|
#SET_GROUP=rtpengine # GROUP only needs to be set if USER is not set or if the user isn't in the group
|
||||||
|
SET_MASK=0x7
|
||||||
|
|||||||
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = purge ]; then
|
||||||
|
deluser --quiet --system rtpengine > /dev/null || true
|
||||||
|
delgroup --quiet --system rtpengine > /dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = configure ]; then
|
||||||
|
for DIR in /var/lib/rtpengine-recording /var/spool/rtpengine; do
|
||||||
|
if ! dpkg-statoverride --list "$DIR" > /dev/null 2>&1; then
|
||||||
|
chown rtpengine:rtpengine "$DIR"
|
||||||
|
chmod 0770 "$DIR"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
||||||
Loading…
Reference in new issue