From owner-freebsd-arch Wed Jan 16 12:21:20 2002 Delivered-To: freebsd-arch@freebsd.org Received: from falcon.prod.itd.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id 1CC2E37B400; Wed, 16 Jan 2002 12:21:17 -0800 (PST) Received: from pool0454.cvx21-bradley.dialup.earthlink.net ([209.179.193.199] helo=mindspring.com) by falcon.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16QwYX-0006uS-00; Wed, 16 Jan 2002 12:21:10 -0800 Message-ID: <3C45E0B2.A092CB4E@mindspring.com> Date: Wed, 16 Jan 2002 12:21:06 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: cjclark@alum.mit.edu Cc: Sheldon Hearn , FreeBSD@jovi.net, freebsd-questions@FreeBSD.ORG, freebsd-arch@FreeBSD.ORG, bug-followup@FreeBSD.ORG Subject: Re: kern/33904: secure mode bug References: <20020115210303.E31328@blossom.cjclark.org> <98823.1011171388@axl.seasidesoftware.co.za> <20020116010937.K31328@blossom.cjclark.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Crist J . Clark" wrote: > The settimeofday(2) call returns > success even though the change requested by the call is not really > done. This is somewhat questionable behavior. The documentation for > settimeofday(2) was not clear about how this works under elevated > securelevel(8), and in fact, the documentation is actually wrong > (which I will fix shortly). This is BS. It's not documented how it works in jails, either, or under vmware. THe call is done, it's just that the caller was, in context, requesting something other than what they thought they were requesting. In fact, any delta in excess of 1 is a request for 1, at that secure level. The call is doing *exactly* what it is supposed to do. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message