Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Dec 2000 06:41:12 -0800 (PST)
From:      rboyd@pokerspot.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   docs/23502: date(1) doesn't detail kern_time.c securelevel check
Message-ID:  <200012121441.eBCEfCi33809@freefall.freebsd.org>
Resent-Message-ID: <200012121450.eBCEo1c35155@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23502
>Category:       docs
>Synopsis:       date(1) doesn't detail kern_time.c securelevel check
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 12 06:50:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Robert Boyd
>Release:        4.2R
>Organization:
Pokerspot
>Environment:
FreeBSD game2.pokerspot.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000     jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC  i386

>Description:
the securelevel check in kern_time.c is non-intuitive.  This should be documented somewhere people would look when realizing they are unable to set the date.  date(1) is probably the best candidate.
>How-To-Repeat:
sysctl -w kern.securelevel=2
gdate --set blah
>Fix:
sys/kern/kern_time.c checks securelevel > 1 before allowing date changes higher than 1 second.

>Release-Note:
>Audit-Trail:
>Unformatted:


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




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