Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1031514: tzdata: create /etc/timezone with default SELinux context

6 views
Skip to first unread message

Christian Göttsche

unread,
Feb 17, 2023, 11:10:04 AM2/17/23
to
Package: tzdata
Version: 2022g-6
Tags: patch
User: selinu...@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'"
0 new messages