Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Jul 2011 09:40:02 -0700
From:      Julian Elischer <julian@freebsd.org>
To:        grarpamp <grarpamp@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Jails: Setting different times in jails
Message-ID:  <4E11ECE2.9050402@freebsd.org>
In-Reply-To: <CAD2Ti2-55tQqjSmWbMr6OCXg8X5Mhbw%2Btpe87FM%2Bn%2BKzjUVyNQ@mail.gmail.com>
References:  <CAD2Ti2-55tQqjSmWbMr6OCXg8X5Mhbw%2Btpe87FM%2Bn%2BKzjUVyNQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 [-|+]<seconds>
>
> 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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E11ECE2.9050402>