From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 3 11:02:51 2003 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 8945B16A4BF for ; Fri, 3 Oct 2003 11:02:51 -0700 (PDT) Received: from tx0.oucs.ox.ac.uk (tx0.oucs.ox.ac.uk [129.67.1.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id D55CD43FA3 for ; Fri, 3 Oct 2003 11:02:49 -0700 (PDT) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from scan0.oucs.ox.ac.uk ([129.67.1.162] helo=localhost) by tx0.oucs.ox.ac.uk with esmtp (Exim 4.20) id 1A5UGP-00072M-Cz for hackers@freebsd.org; Fri, 03 Oct 2003 19:02:49 +0100 Received: from rx0.oucs.ox.ac.uk ([129.67.1.161]) by localhost (scan0.oucs.ox.ac.uk [129.67.1.162]) (amavisd-new, port 25) with ESMTP id 27012-01 for ; Fri, 3 Oct 2003 19:02:48 +0100 (BST) Received: from gateway.wadham.ox.ac.uk ([163.1.161.253]) by rx0.oucs.ox.ac.uk with smtp (Exim 4.20) id 1A5UGO-00072E-2h for hackers@freebsd.org; Fri, 03 Oct 2003 19:02:48 +0100 Received: (qmail 16509 invoked by uid 0); 3 Oct 2003 18:02:48 -0000 Received: from colin.percival@wadham.ox.ac.uk by gateway by uid 71 with qmail-scanner-1.16 (sweep: 2.14/3.71. spamassassin: 2.53. Clear:. Processed in 2.510537 secs); 03 Oct 2003 18:02:48 -0000 X-Qmail-Scanner-Mail-From: colin.percival@wadham.ox.ac.uk via gateway X-Qmail-Scanner: 1.16 (Clear:. Processed in 2.510537 secs) Received: from dhcp1131.wadham.ox.ac.uk (HELO piii600.wadham.ox.ac.uk) (163.1.161.131) by gateway.wadham.ox.ac.uk with SMTP; 3 Oct 2003 18:02:45 -0000 Message-Id: <5.0.2.1.1.20031003184821.020c4c48@popserver.sfu.ca> X-Sender: cperciva@popserver.sfu.ca X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Fri, 03 Oct 2003 19:02:44 +0100 To: hackers@freebsd.org From: Colin Percival Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: settimeofday within jail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2003 18:02:51 -0000 Ok, this is a wierd question: How hard would it be to allow jails to have local clocks which could be manipulated within those jails? The reason I'm asking is this: As those of you who attended my BSDCon talk will know, FreeBSD Update plays games with the clock (specifically, it sets the clock forward by 400 days) in order to locate timestamps embedded in binary files. I'd like to put as much as possible into a jail, to protect my buildbox against the unlikely possibility that some malware gets into the FreeBSD CVS repository. If jailed clocks would be too difficult, I can certainly work around it; but since I have almost no knowledge of kernel internals I thought I'd ask. Colin Percival