diff options
Diffstat (limited to 'lib/libc/sys/gettimeofday.2')
-rw-r--r-- | lib/libc/sys/gettimeofday.2 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/libc/sys/gettimeofday.2 b/lib/libc/sys/gettimeofday.2 index bc3fa0b..5805fdb 100644 --- a/lib/libc/sys/gettimeofday.2 +++ b/lib/libc/sys/gettimeofday.2 @@ -29,9 +29,9 @@ .\" 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 @@ -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. +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 |