From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 6 02:48:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E5E816A4CE for ; Mon, 6 Dec 2004 02:48:15 +0000 (GMT) Received: from mail1.speakeasy.net (mail1.speakeasy.net [216.254.0.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09D3D43D2F for ; Mon, 6 Dec 2004 02:48:15 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 25861 invoked from network); 6 Dec 2004 02:48:14 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail1.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 6 Dec 2004 02:48:14 -0000 Received: from hydrogen.funkthat.com (wluzyr@localhost.funkthat.com [127.0.0.1])iB62mEGH096172; Sun, 5 Dec 2004 18:48:14 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id iB62mD2f096171; Sun, 5 Dec 2004 18:48:13 -0800 (PST) Date: Sun, 5 Dec 2004 18:48:13 -0800 From: John-Mark Gurney To: Mike Silbersack Message-ID: <20041206024813.GN19624@funkthat.com> Mail-Followup-To: Mike Silbersack , Stefan Midjich , freebsd-hackers@freebsd.org References: <41B07635.9060705@swebase.com> <20041205202236.M66036@odysseus.silby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041205202236.M66036@odysseus.silby.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org cc: Stefan Midjich Subject: Re: Rebooting the kernel without resetting uptime? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2004 02:48:15 -0000 Mike Silbersack wrote this message on Sun, Dec 05, 2004 at 20:24 -0600: > On Fri, 3 Dec 2004, Stefan Midjich wrote: > > >I know a guy i respect on IRC told me this is not possible but since this > >is the hackers list i thought the topic at least deserves a discussion. I > >guess i wont be able to sit still until someone either does it or shows me > >why it can't be done. > > Faking the uptime which is retrieved by netcraft and other services which > check TCP timestamps would be easy. > > Faking your local uptime might be a bit more work, there could be > sideeffects of accelerating the timecounters. Bah, it's not that hard, just write out the current uptime on shutdown, then update the boottime and uptime on bootup... make their sysctl's writable, it shouldn't be a problem.. though what's just a number, might as well make your uptime 500 years.. :) that'd really throw everyone.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."