Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 1999 10:43:44 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, nsayer@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_time.c
Message-ID:  <199905100043.KAA08334@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified files:        (Branch: RELENG_3)
>    sys/kern             kern_time.c 
>  Log:
>  MFC: securelevel time setting handling code. This has worked
>  perfectly on a number of RELENG_3 machines since it was added
>  to -current.

This should be backed out of both -current and RELENG_3.  Only the part
that disallows setting the clock forward is correct.  Bugs in the other
parts include:

- success is returned after clamping the time to a time other than the
  one requested.
- error messages about clamping are printed at splhigh().

An application can only avoid these problems by being fairly aware of
the implementation and doing micro-adjustments, but micro-adjustments
can be done better using adjtime(2), modulo the reluctance of adjtime()
to adjust the time rapidly.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905100043.KAA08334>