Re: [Vserver] Virtualizing /proc/version

From: Enrico Scholz <>
Date: Wed 04 Jan 2006 - 17:42:29 GMT
Message-ID: <>

Herbert Poetzl <> writes:

>> it would be nice when /proc/version could be virtualized (e.g. using
>> values from VCMD_set_vhi_name). Currently, it reveals information about
>> the real host (e.g. real os version, buildhost/-user).
> hmm, looking at the code, I see:
> static int version_read_proc(char *page, char **start, off_t off,
> int count, int *eof, void *data)
> ...
> const char vx_linux_banner[] =
> "Linux version %s (" LINUX_COMPILE_BY "@"

oops, I did not looked exactly at it and did not noticed that the
release is already virtualized.

But it would be nice when LINUX_COMPILE_BY/HOST and perhaps the compiler
and date would be virtualized/anonymized. I see two ways:

(a) an additional context-flag (e.g. VXF_ANONYMIZE) which sets:

    * LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST to 'root@localhost'
    * the LINUX_COMPILER to: "gcc" __GNUC__ "." __GNUC_MINOR__ "." __GNUC_PATCHLEVEL__
    * the date should not contain hours/minutes/seconds

(b) allow to configure the three entries above through new fields in


Vserver mailing list

Received on Wed Jan 4 17:42:58 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 04 Jan 2006 - 17:43:01 GMT by hypermail 2.1.8