lkml.org 
[lkml]   [1998]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectTime Travel v1.0.
Hello guys,

I would like to announce a simple (very) module called Time Travel
which allows one to specify a program on a command line (tt_prog) and
intercept all the calls to time(2)/gettimeofday(2) from this program (or
any process with the same current->comm), returning the time shifted by
the number of seconds specified as a second parameter (tt_shift).

So, for example loading timetravel.o as

# insmod timetravel.o tt_prog="myprog" tt_shift=-160000

fools "myprog" into thinking that "now" is still about two days ago.
The tt_shift can be both negative and positive.

This, although being very simple, is sometimes quite useful. One can test
y2k compliance, bypass license restrictions (do NOT do that, please!)
etc...

I know this can be done in user space etc etc. so do not bother flaming
me, please. There *are* several situations where I (and at least one more
human being) find this module useful and useable so if you don't
like it - don't use it :)

Have a very nice day,
------
Tigran A. Aivazian | http://www.sco.com/
Escalations Research Group | Email: tigran@sco.com
Santa Cruz Operation Ltd |
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.870 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site