OpenBSD/src mrlWTsRlib/libc/sys sysctl.2, share/man/man7 securelevel.7

   sysctl(2): add kern.utc_offset: successor to the DST/TIMEZONE options(4)

   The DST and TIMEZONE options(4) are incompatible with KARL, so we need
   some other way to compensate for an RTC running with a known offset.

   Enter kern.utc_offset, an offset in minutes East of UTC.  TIMEZONE has
   always been minutes West, but this is inconsistent with how everyone
   else talks about timezones, hence the flip.

   TIMEZONE has the advantage of being compiled into the binary.  Our new
   sysctl(2) has no such luck, so it needs to be set as early as possible
   in boot, from sysctl.conf(5), so we can correct the kernel clock from
   the RTC's local time to UTC before daemons like ntpd(8) and cron(8)
   start.  To encourage this, kern.utc_offset is made immutable after the
   securelevel(7) is raised to 1.

   Prompted by yasuoka@.  Discussed with deraadt@, kettenis@, yasuoka@.
   Additional testing by yasuoka@.

   ok deraadt@, yasuoka@
VersionDeltaFile
1.366+35-1sys/kern/kern_sysctl.c
1.31+19-2lib/libc/sys/sysctl.2
1.41+4-12sys/arch/macppc/macppc/clock.c
1.31+4-9sys/arch/amd64/isa/clock.c
1.55+3-8sys/arch/i386/isa/clock.c
1.195+4-2sys/sys/sysctl.h
1.31+3-2share/man/man7/securelevel.7
1.21+2-1sys/sys/kernel.h
1.44+2-1sys/conf/param.c
+76-389 files

UnifiedSplitRaw