Robie Basak has proposed merging lp:~racb/ubuntu/precise/cobbler/858860 into 
lp:ubuntu/cobbler.

Requested reviews:
  Ubuntu Server Team (ubuntu-server)

For more details, see:
https://code.launchpad.net/~racb/ubuntu/precise/cobbler/858860/+merge/87508

I have upgrade tested this from Oneiric and previous Precise and also tested a 
fresh installation on Precise.

This is also needed for the security fix in Oneiric - see 
https://bugs.launchpad.net/ubuntu/+source/cobbler/+bug/858878/comments/5
-- 
https://code.launchpad.net/~racb/ubuntu/precise/cobbler/858860/+merge/87508
Your team Ubuntu Server Team is requested to review the proposed merge of 
lp:~racb/ubuntu/precise/cobbler/858860 into lp:ubuntu/cobbler.
=== modified file 'debian/changelog'
--- debian/changelog	2011-12-22 17:11:48 +0000
+++ debian/changelog	2012-01-04 16:52:30 +0000
@@ -1,3 +1,10 @@
+cobbler (2.2.2-0ubuntu13) precise; urgency=low
+
+  * debian/cobbler.preinst: fix /etc/cobbler/users.digest if upgrading from a
+    version that set it world readable (LP: #858860).
+
+ -- Robie Basak <robie.ba...@ubuntu.com>  Wed, 04 Jan 2012 16:10:11 +0000
+
 cobbler (2.2.2-0ubuntu12) precise; urgency=low
 
   * remove python-cobbler postinst script entirely.

=== added file 'debian/cobbler.preinst'
--- debian/cobbler.preinst	1970-01-01 00:00:00 +0000
+++ debian/cobbler.preinst	2012-01-04 16:52:30 +0000
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+# Fix world-readable permissions on /etc/cobbler/users.digest if upgrading
+# from a version which had it set incorrectly by default, the file is still
+# there and still has the original incorrect permissions (LP: #858860).
+
+if [ "$1" = "upgrade" ] \
+     && dpkg --compare-versions "$2" lt "2.2.2-0ubuntu13" \
+     && [ -f /etc/cobbler/users.digest \
+     -a `stat -c%a /etc/cobbler/users.digest` = "644" ]; then
+	chmod 600 /etc/cobbler/users.digest
+fi
+
+#DEBHELPER#

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to