-.\" $OpenBSD: gettimeofday.2,v 1.4 1997/02/22 08:32:52 millert Exp $
+.\" $OpenBSD: gettimeofday.2,v 1.5 1997/03/16 01:18:49 flipk Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
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
+If the system securelevel is greater than 1 (see
.Xr init 8 ),
the time may only be advanced.
This limitation is imposed to prevent a malicious super-user
-/* $OpenBSD: kern_time.c,v 1.4 1997/02/22 08:28:28 millert Exp $ */
+/* $OpenBSD: kern_time.c,v 1.5 1997/03/16 01:18:48 flipk Exp $ */
/* $NetBSD: kern_time.c,v 1.20 1996/02/18 11:57:06 fvdl Exp $ */
/*
* but not set back). This feature prevent interlopers from
* setting arbitrary time stamps on files.
*/
- if (securelevel > 0 && timercmp(&atv, &time, <))
+ if (securelevel > 1 && timercmp(&atv, &time, <))
return (EPERM);
/* WHAT DO WE DO ABOUT PENDING REAL-TIME TIMEOUTS??? */
s = splclock();