Re: [Vserver] Virtualizing /proc/version

From: Bodo Eggert <7eggert_at_gmx.de>
Date: Thu 05 Jan 2006 - 11:14:58 GMT
Message-ID: <Pine.LNX.4.58.0601051213210.3428@be1.lrz>

On Wed, 4 Jan 2006, Herbert Poetzl wrote:
> On Wed, Jan 04, 2006 at 06:42:29PM +0100, Enrico Scholz wrote:
> > Herbert Poetzl <herbert@13thfloor.at> 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 "@"
> > > LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") %s\n";
> >
> > 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:
>
> well, I did not consider that information critical (mainly
> because it just tells you where the kernel was compiled,
> who did it and what compiler was used (which usually is
> fine and doesn't tell you anything about the host), but
> I did spend some thought on how to virtualize that, and
> I came to the conclusion that a hack like a) is not really
> appropriate, as it does not help, but b) might be an option
> ...

The most simple solution is to bind-mount an apropiate file, but if there
are many "virtualized" entries, this would get messy.

-- 
Top 100 things you don't want the sysadmin to say:
51. YEEEHA!!!  What a CRASH!!!
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Thu Jan 5 11:12:09 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 05 Jan 2006 - 11:12:14 GMT by hypermail 2.1.8