Package: tzdata
Version: 2022g-6
Tags: patch
User: selinux-de...@lists.alioth.debian.org
Usertags: selinux

Dear Maintainer,

with version 2022g-6 the postinst script creates /etc/timezone if not existent.
Please ensure the file, especially if created, has the default SELinux
context, e.g. via:


diff --git a/debian/tzdata.postinst b/debian/tzdata.postinst
index bcb7d52..239377b 100644
--- a/debian/tzdata.postinst
+++ b/debian/tzdata.postinst
@@ -34,6 +34,7 @@ if [ "$1" = configure ]; then
               which restorecon >/dev/null 2>&1 && restorecon
"$DPKG_ROOT/etc/localtime"
       fi
       echo "$TIMEZONE" > "$DPKG_ROOT/etc/timezone"
+       which restorecon >/dev/null 2>&1 && restorecon "$DPKG_ROOT/etc/timezone"

       echo
       echo "Current default time zone: '$TIMEZONE'"

Reply via email to