Re: Jails: Setting different times in jails

2011-07-19 Thread grarpamp
Why on earth would you want this? Hi. Since your quote of my note was not to the original, I'll repost it here. Kurt Lidl also posted useful situations on these lists. Also, being able to have time tick backwards in jails could be interesting fuzzing too :-) Enjoy. Would be nice to be able to

Re: Jails: Setting different times in jails

2011-07-10 Thread Kurt Lidl
On Sat, Jul 09, 2011 at 11:19:23PM -0600, Warner Losh wrote: Why on earth would you want this? Oh, it's not hard to imagine why you want to do this. Say you're testing a particular date rollover event, and want to make sure your software is up to snuff. Doing it in a jail would make it easy to

Re: Jails: Setting different times in jails

2011-07-09 Thread Warner Losh
Why on earth would you want this? Warner On Jul 7, 2011, at 2:31 AM, grarpamp wrote: possibly achievable in libc? I don't know. Where else would it be done? stat, utimes, gettimeofday, clock_gettime, adjtime, etc and their variations. I've not checked what currently happens, but I

Re: Jails: Setting different times in jails

2011-07-07 Thread grarpamp
possibly achievable in libc? I don't know. Where else would it be done? stat, utimes, gettimeofday, clock_gettime, adjtime, etc and their variations. I've not checked what currently happens, but I don't think root in a jail should be able to set any kernel time parameters, absent a syscall that

Jails: Setting different times in jails

2011-07-04 Thread grarpamp
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:

Re: Jails: Setting different times in jails

2011-07-04 Thread Julian Elischer
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