On Mon, Feb 11, 2002 at 11:49:39AM +0000, SA products wrote: > > Dear Kernel list, > > I want to fake the time returned by the time() system call so that > for a limited number of user space programs the time can be set to > the future or the past without affecting other applications and > without affecting system time-- Ideally I would like to install a > loadable module to accomplish this- Any hints ? Any starting points? Here's an LD_PRELOAD shared library that will do the trick... just export the environment variable FAKETIME with the time that you'd like, and then export the LD_PRELOAD environment variable to point that the faketime.so library, and then execute your program. All programs that have these two environment variables set will have their time faked out accordingly. - Ted