public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andreas Ferber <aferber@techfak.uni-bielefeld.de>
To: linux-kernel@vger.kernel.org
Cc: Theodore Tso <tytso@mit.edu>, SA products <super.aorta@ntlworld.com>
Subject: Re: faking time
Date: Tue, 12 Feb 2002 09:33:55 +0100	[thread overview]
Message-ID: <20020212093355.A29445@devcon.net> (raw)
In-Reply-To: <3C67AFD3.722C5471@ntlworld.com> <20020211224723.A5514@thunk.org>
In-Reply-To: <20020211224723.A5514@thunk.org>; from tytso@mit.edu on Mon, Feb 11, 2002 at 10:47:23PM -0500

On Mon, Feb 11, 2002 at 10:47:23PM -0500, Theodore Tso wrote:
> 
> 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.

But note that this doesn't work with programs linked statically. If
you must fool one of those, ptrace() is the only way to do it without
some sort of kernel patch or module I think.

Andreas
-- 
       Andreas Ferber - dev/consulting GmbH - Bielefeld, FRG
     ---------------------------------------------------------
         +49 521 1365800 - af@devcon.net - www.devcon.net

  reply	other threads:[~2002-02-12  8:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-11 11:49 faking time SA products
2002-02-11 13:33 ` Alan Cox
2002-02-11 20:31 ` Pavel Machek
2002-02-11 21:29 ` Nerijus Baliunas
2002-02-11 23:08 ` Kilobug
2002-02-12  3:47 ` Theodore Tso
2002-02-12  8:33   ` Andreas Ferber [this message]
2002-02-12  8:56     ` mulix
2002-02-12 12:39       ` Pavel Machek
2002-02-12 21:43         ` guy keren
2002-02-12  6:00 ` David Schwartz
2002-02-12  6:09 ` Nick 'Sharkey' Moore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020212093355.A29445@devcon.net \
    --to=aferber@techfak.uni-bielefeld.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=super.aorta@ntlworld.com \
    --cc=tytso@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox