[debian-edu-commits] debian-edu/pkg-team/ 121/159: pre-create logfiles (no logrotate.d file, though)

Dominik George natureshadow-guest at moszumanska.debian.org
Tue Feb 23 10:04:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

natureshadow-guest pushed a commit to branch master
in repository xrdp.

commit 394277b903bef76336b01600fdb4763df45972ea
Author: mirabilos <tg at mirbsd.org>
Date:   Sun Aug 30 21:05:23 2015 +0000

    pre-create logfiles (no logrotate.d file, though)
---
 README.Debian | 4 ----
 changelog     | 3 ++-
 xrdp.postinst | 5 +++++
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/README.Debian b/README.Debian
index 93a0dbd..cedbf49 100644
--- a/README.Debian
+++ b/README.Debian
@@ -30,7 +30,3 @@ Another security issue is the disablement of access control by default.
 Use at your own risk and inform your users that privacy is possibly not
 guaranteed as all users can attach to RDP users’ sessions locally.
 See also: https://github.com/neutrinolabs/xrdp/issues/264
-
-Before starting, ensure these are creates:
-• /var/log/xrdp-sesman.log (root)
-• /var/log/xrdp.log (xrdp)
diff --git a/changelog b/changelog
index 3d07336..5a61dfb 100644
--- a/changelog
+++ b/changelog
@@ -2,8 +2,9 @@ xrdp (0.9.0~git20150830+dfsg-1~beta2) teckids; urgency=medium
 
   * Adjust Recommends and add Provides for xorgxrdp setup
   * Add sysvinit (file-rc, sysv-rc) LSB script (untested)
+  * Create logfiles with correct permissions in postinst
 
- -- Thorsten Glaser <thorsten.glaser at teckids.org>  Sun, 30 Aug 2015 21:03:14 +0000
+ -- Thorsten Glaser <thorsten.glaser at teckids.org>  Sun, 30 Aug 2015 21:05:10 +0000
 
 xrdp (0.9.0~git20150830+dfsg-1~beta1) teckids; urgency=high
 
diff --git a/xrdp.postinst b/xrdp.postinst
index 0e63d25..b977935 100644
--- a/xrdp.postinst
+++ b/xrdp.postinst
@@ -29,6 +29,11 @@ configure)
 	    --disabled-password --disabled-login \
 	    --home /var/run/xrdp xrdp
 
+	touch /var/log/xrdp-sesman.log /var/log/xrdp.log
+	chown root:adm /var/log/xrdp-sesman.log
+	chown xrdp:adm /var/log/xrdp.log
+	chmod 0640 /var/log/xrdp-sesman.log /var/log/xrdp.log
+
 	if dpkg --compare-versions "$2" lt '0.4.0~dfsg-7'; then
 		rm -f /etc/xrdp/rsakeys.ini
 	fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/xrdp.git



More information about the debian-edu-commits mailing list