Ensure files created by RabbitMQ are not world-readable. Add gid bit to /var/log/rabbitmq to ensure sub-directories and files are group-id "adm"
This commit is contained in:
parent
ead58795ef
commit
d630709ae7
|
@ -6,6 +6,7 @@ After=syslog.target network.target
|
|||
Type=notify
|
||||
User=rabbitmq
|
||||
Group=rabbitmq
|
||||
UMask=0027
|
||||
NotifyAccess=all
|
||||
TimeoutStartSec=3600
|
||||
# Un-comment this setting if you need to increase RabbitMQ's
|
||||
|
|
|
@ -49,7 +49,7 @@ case "$1" in
|
|||
# log directory to the owner and the group. Others won't
|
||||
# have any access to log files: this is in case sensitive
|
||||
# data are accidentally logged (like process crash data).
|
||||
chmod 750 /var/log/rabbitmq
|
||||
chmod 2750 /var/log/rabbitmq
|
||||
else
|
||||
# The package was already configured: it's an upgrade over
|
||||
# a previously installed version, or it's an install over
|
||||
|
@ -80,5 +80,3 @@ esac
|
|||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ Wants=network.target epmd@0.0.0.0.socket
|
|||
Type=notify
|
||||
User=rabbitmq
|
||||
Group=rabbitmq
|
||||
UMask=0027
|
||||
NotifyAccess=all
|
||||
TimeoutStartSec=3600
|
||||
# Un-comment this setting if you need to increase RabbitMQ's
|
||||
|
|
Loading…
Reference in New Issue