[systemd-bugs] [Bug 81538] New: Allow to disable setting the kernel time zone

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 19 08:28:00 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=81538

          Priority: medium
            Bug ID: 81538
          Assignee: systemd-bugs at lists.freedesktop.org
           Summary: Allow to disable setting the kernel time zone
        QA Contact: systemd-bugs at lists.freedesktop.org
          Severity: enhancement
    Classification: Unclassified
                OS: Linux (All)
          Reporter: nicolas.george at normalesup.org
          Hardware: All
            Status: NEW
           Version: unspecified
         Component: general
           Product: systemd

At boot, systemd sets the kernel timezone based on the default userspace
timezone (/etc/localtime).

Setting the kernel timezone is dangerous, as it has strange effects on the
timestamps of legacy filesystems (the timestamps on the other side of the
daylight saving time change are off by one). The tz=UTC option exists, but not
all mounting tool allow to enable it, and no mounting tool can avoid forgetting
it. I find it much safer to leave the kernel with the pure Unix time and only
use the local time in userland.

Therefore, please add a way of disabling setting the kernel time zone, i.e.
never call settimeofday() with a non-NULL second argument.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140719/f4e7717a/attachment.html>


More information about the systemd-bugs mailing list