[lkml]   [2002]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: faking time
    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 - **
    Home Mail : Work Mail :
    GSM : (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

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:24    [W:0.021 / U:2.892 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site