summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2017-04-29 20:34:44 +0200
committerMichael Meeks <michael.meeks@collabora.com>2017-04-29 22:44:13 +0200
commitf8ae6243dde0c2fdd9bc048020d386de07145bfd (patch)
tree33ae297ab02a43b47753a779cc9da8a279c9f76b
parent31818b7dd65dcacf0c52fa8900ae129bc91c72b3 (diff)
non-world-readable loolwsd.xml in packages
Change-Id: Ibe91699f8d126dd34c1041fcfaaf471974387e47 Reviewed-on: https://gerrit.libreoffice.org/37102 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
-rwxr-xr-xdebian/loolwsd.postinst.in2
-rw-r--r--loolwsd.spec.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/loolwsd.postinst.in b/debian/loolwsd.postinst.in
index 75ffb82e9..a7cb81333 100755
--- a/debian/loolwsd.postinst.in
+++ b/debian/loolwsd.postinst.in
@@ -10,6 +10,8 @@ case "$1" in
adduser --quiet --system --group --home /opt/lool lool
mkdir -p /var/cache/loolwsd && chown lool: /var/cache/loolwsd
rm -rf /var/cache/loolwsd/*
+ chown lool: /etc/loolwsd/loolwsd.xml
+ chmod 640 /etc/loowsd/loolwsd.xml
# We assume that the LibreOffice to be used is built TDF-style
# and installs in @LO_PATH@, and that /opt/lool is
diff --git a/loolwsd.spec.in b/loolwsd.spec.in
index 5b1463e61..1c1d66c48 100644
--- a/loolwsd.spec.in
+++ b/loolwsd.spec.in
@@ -110,7 +110,7 @@ echo "0 0 */1 * * root find /var/cache/loolwsd -name \"*.png\" -a -atime +10 -ex
%endif
%config(noreplace) /etc/cron.d/loolwsd.cron
-%config(noreplace) /etc/loolwsd/loolwsd.xml
+%config(noreplace) %attr(640, lool, root) /etc/loolwsd/loolwsd.xml
%config /etc/loolwsd/loolkitconfig.xcu
%doc README