diff options
author | peter <peter@FreeBSD.org> | 1997-03-11 11:35:56 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-11 11:35:56 +0000 |
commit | 724b89cfd3fcf9531a8abee51d88f8722ab252a9 (patch) | |
tree | 5a81d70e85130a51bbe4d2b35e4077607d6cc83a /lib/libc/sys/gettimeofday.2 | |
parent | e8e23405def4966834a6703435257f5f00ed1ac1 (diff) | |
download | FreeBSD-src-724b89cfd3fcf9531a8abee51d88f8722ab252a9.zip FreeBSD-src-724b89cfd3fcf9531a8abee51d88f8722ab252a9.tar.gz |
Merge from Lite2 onto mainline -
- add undelete() and undelete.2 (requires libc minor bump some time)
- man page updates
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 |