Messages in this thread | | | Date | Thu, 11 Jun 1998 17:54:24 +0000 (GMT) | From | Tigran Aivazian <> | Subject | Time 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] | |