From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 3 08:16:50 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09A10106564A for ; Sun, 3 Jul 2011 08:16:50 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id DDEA38FC0A for ; Sun, 3 Jul 2011 08:16:49 +0000 (UTC) Received: by pzk27 with SMTP id 27so2020563pzk.13 for ; Sun, 03 Jul 2011 01:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=OQdIHi/yN4NeHTN9T6W8NtljZ6y0gMQJBG9dgzqwqjA=; b=FOWW9kVPPmvM1zKLvZCxk7JONzi8gt9YoW211yIlAfnZ9rPJi1umRjjUpZKGZ77goS ycURbURxwdGmGAcdl6rSkSNA06TfbbehMIggubm7WW2RLugELY74NrGwWTWz4me0tGp5 FWpi4Q53jno0N7ko9x/Diw6hBWMotiPtFZuBY= MIME-Version: 1.0 Received: by 10.142.149.5 with SMTP id w5mr2240402wfd.326.1309681009339; Sun, 03 Jul 2011 01:16:49 -0700 (PDT) Received: by 10.142.174.13 with HTTP; Sun, 3 Jul 2011 01:16:49 -0700 (PDT) Date: Sun, 3 Jul 2011 04:16:49 -0400 Message-ID: From: grarpamp To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Mon, 04 Jul 2011 13:11:27 +0000 Subject: Jails: Setting different times in jails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jul 2011 08:16:50 -0000 Would be nice to be able to set different times in different jails. All jails would tick in step with the system. But each jail could have it's birthtime set specifically via jail(8), jail(2), etc. Either by specification of a specific time, or an offset from the current true system time. ie: jail(8): -t [-|+] Child jails would offset from their parent, not the system. Internally, gettimeofday, filesystem timestamps, and any other userland interfaces would be hooked and adjusted by referencing a table of jail ID's and their offsets. Similar to how setting TZ or /etc/localtime effects a timezone offset. But transparent and undetectable to the jail unless set as visible by the invoker. Useful for creating alternate histories, testing time dependant protocols and applications, forensics, pen testing, etc.