From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 4 16:40:05 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 8A9DB106564A for ; Mon, 4 Jul 2011 16:40:05 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5418FC0A for ; Mon, 4 Jul 2011 16:40:05 +0000 (UTC) Received: from julian-mac.elischer.org (home-nat.elischer.org [67.100.89.137]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id p64Ge03e026833 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 4 Jul 2011 09:40:03 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4E11ECE2.9050402@freebsd.org> Date: Mon, 04 Jul 2011 09:40:02 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: grarpamp References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: 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: Mon, 04 Jul 2011 16:40:05 -0000 On 7/3/11 1:16 AM, grarpamp wrote: > 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. possibly achievable in libc? in any case file this idea somewhere.. :-) > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >