[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#503028: marked as done (tzdata: postinst needs to restore SELinux context on /etc/localtime)



Your message dated Sun, 02 Nov 2008 00:02:06 +0000
with message-id <E1KwQPu-0004Hx-5o@ries.debian.org>
and subject line Bug#503028: fixed in tzdata 2008i-2
has caused the Debian Bug report #503028,
regarding tzdata: postinst needs to restore SELinux context on /etc/localtime
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
503028: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503028
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: tzdata
Version: 2008h-2
Severity: normal
Tags: patch

On a system with SELinux enabled, copying a file into /etc/localtime causes
its security context to be set to etc_t, the default for files in /etc.  But
/etc/localtime needs to be labelled as locale_t, so you need to run
restorecon on it after copying.

--- debian/postinst.orig        2008-10-21 21:20:25.000000000 +0100
+++ debian/postinst     2008-10-21 21:20:34.000000000 +0100
@@ -29,6 +29,7 @@
         echo $AREA/$ZONE > /etc/timezone
         rm -f /etc/localtime && \
             cp -f /usr/share/zoneinfo/$AREA/$ZONE /etc/localtime
+        which restorecon >/dev/null 2>&1 && restorecon /etc/localtime

         echo
         echo "Current default timezone: '$AREA/$ZONE'"



--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.26.2

Debian Release: lenny/sid
  500 unstable        ftp.ie.debian.org
  500 testing         ftp.ie.debian.org
    1 experimental    ftp.ie.debian.org

--- Package information. ---
Depends          (Version) | Installed
==========================-+-===========
debconf                    | 1.5.24
 OR debconf-2.0            |


-- 
Martin Orr



--- End Message ---
--- Begin Message ---
Source: tzdata
Source-Version: 2008i-2

We believe that the bug you reported is fixed in the latest version of
tzdata, which is due to be installed in the Debian FTP archive:

tzdata-java_2008i-2_all.deb
  to pool/main/t/tzdata/tzdata-java_2008i-2_all.deb
tzdata_2008i-2.diff.gz
  to pool/main/t/tzdata/tzdata_2008i-2.diff.gz
tzdata_2008i-2.dsc
  to pool/main/t/tzdata/tzdata_2008i-2.dsc
tzdata_2008i-2_all.deb
  to pool/main/t/tzdata/tzdata_2008i-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 503028@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Clint Adams <schizo@debian.org> (supplier of updated tzdata package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Sat, 01 Nov 2008 19:45:54 -0400
Source: tzdata
Binary: tzdata tzdata-java
Architecture: source all
Version: 2008i-2
Distribution: unstable
Urgency: low
Maintainer: GNU Libc Maintainers <debian-glibc@lists.debian.org>
Changed-By: Clint Adams <schizo@debian.org>
Description: 
 tzdata     - time zone and daylight-saving time data
 tzdata-java - time zone and daylight-saving time data for use by java runtimes
Closes: 503028 503969 503979 503988 503995 504036 504038 504074
Changes: 
 tzdata (2008i-2) unstable; urgency=low
 .
   [ Christian Perrier ]
   * Debconf translations:
   * French
   * Belarusian. Closes: #503969
   * Japanese. Closes: #503979
   * Gujarati. Closes: #503988
   * Lithuanian. Closes: #503995
   * Kurdish
   * Swedish. Closes: #504036
   * German. Closes: #504038
   * Catalan. Closes: #504074
 .
   [ Clint Adams ]
   * debian/postinst: apply patch from Martin Orr to restore SELinux
     context of /etc/localtime.  closes: #503028.
Checksums-Sha1: 
 1461e3623b8d38e642d458d9268ee60f930d3be9 1127 tzdata_2008i-2.dsc
 5d6bb1306d8acc25f1c6dd6b331e701d8d71f863 217209 tzdata_2008i-2.diff.gz
 b6a3ffb2db5672d802165c6da5606f3f9b4f96b6 741116 tzdata_2008i-2_all.deb
 e40e6c49965abd6ede6cbf9077b104e901995343 144612 tzdata-java_2008i-2_all.deb
Checksums-Sha256: 
 54ecdb9972f6c37f4bee83f74ca4cf92eadfb4adb2c6a6c89cd2b45bcc740aa6 1127 tzdata_2008i-2.dsc
 6707ede1971d27b7d459d0e9ea0eb0dc26fe47d28913085ec9d9d280983ea3ab 217209 tzdata_2008i-2.diff.gz
 98b1cad643f33231d82a2c6c81a70ef40a688b1eb99bb531346a1875fbf541fc 741116 tzdata_2008i-2_all.deb
 2f99960e1c21eaeaf6fd7d9f17d5b55307e4cc933e7020160ff2583d24e8873e 144612 tzdata-java_2008i-2_all.deb
Files: 
 f9c9d8f66162758ee61b609acca79c0d 1127 libs required tzdata_2008i-2.dsc
 034a0282a297020e2663dbb63b403067 217209 libs required tzdata_2008i-2.diff.gz
 2adbe2fdbd6d3da453c34596c738c884 741116 libs required tzdata_2008i-2_all.deb
 4ebef55dc990439a23286ecc50d3de69 144612 libs optional tzdata-java_2008i-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Debian!

iD8DBQFJDOwL5m0u66uWM3ARAvtCAJ4xYzfQqxWWHOt7/ubaiNt1OEIZcACdGYrN
YnYelyuEASiF0ZVF7PqW50Y=
=0HmL
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: