BSD 4_4_Lite2 release
[unix-history] / usr / src / lib / libc / sys / gettimeofday.2
index 9426de6..b4d0429 100644 (file)
@@ -29,9 +29,9 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\"     @(#)gettimeofday.2     8.1 (Berkeley) 6/4/93
+.\"     @(#)gettimeofday.2     8.2 (Berkeley) 5/26/95
 .\"
 .\"
-.Dd June 4, 1993
+.Dd May 26, 1995
 .Dt GETTIMEOFDAY 2
 .Os BSD 4
 .Sh NAME
 .Dt GETTIMEOFDAY 2
 .Os BSD 4
 .Sh NAME
@@ -93,6 +93,14 @@ Daylight Saving time applies locally during
 the appropriate part of the year.
 .Pp
 Only the super-user may set the time of day or time zone.
 the appropriate part of the year.
 .Pp
 Only the super-user may set the time of day or time zone.
+If the system is running in secure mode (see
+.Xr init 8 ),
+the time may only be advanced.
+This limitation is imposed to prevent a malicious super-user
+from setting arbitrary time stamps on files.
+The system time can still be adjusted backwards using the
+.Xr adjtime 2
+system call even when the system is secure.
 .Sh RETURN
 A 0 return value indicates that the call succeeded.
 A -1 return value indicates an error occurred, and in this
 .Sh RETURN
 A 0 return value indicates that the call succeeded.
 A -1 return value indicates an error occurred, and in this