From: Kilobug <kilobug@freesurf.fr>
To: SA products <super.aorta@ntlworld.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: faking time
Date: Tue, 12 Feb 2002 00:08:34 +0100 [thread overview]
Message-ID: <3C684EF2.2040609@freesurf.fr> (raw)
In-Reply-To: <3C67AFD3.722C5471@ntlworld.com>
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?
Maybe could you use a shared library loaded with LD_PRELOAD that
overrides the libc's time() function ?
IMHO this is simpler (and safer) than writing a kernel module, but
it will only work with dynamically linked programs, not with static
nor suid-ed programs.
--
** Gael Le Mignot "Kilobug", Ing3 EPITA - http://kilobug.free.fr **
Home Mail : kilobug@freesurf.fr Work Mail : le-mig_g@epita.fr
GSM : 06.71.47.18.22 (in France) ICQ UIN : 7299959
Fingerprint : 1F2C 9804 7505 79DF 95E6 7323 B66B F67B 7103 C5DA
"Software is like sex it's better when it's free.", Linus Torvalds
next prev parent reply other threads:[~2002-02-11 23:03 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 [this message]
2002-02-12 3:47 ` Theodore Tso
2002-02-12 8:33 ` Andreas Ferber
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=3C684EF2.2040609@freesurf.fr \
--to=kilobug@freesurf.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=super.aorta@ntlworld.com \
/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