Re: [Vserver] Virtualizing /proc/version

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Wed 04 Jan 2006 - 16:20:17 GMT
Message-ID: <20060104162017.GD931@MAIL.13thfloor.at>

On Wed, Jan 04, 2006 at 01:44:13PM +0100, Enrico Scholz wrote:
> Hello,
>
> 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)
{
        int len;

        len = sprintf(page, vx_linux_banner,
                vx_new_uts(release),
                vx_new_uts(version));
        return proc_calc_metrics(page, start, off, count, eof, len);
}

and

const char vx_linux_banner[] =
        "Linux version %s (" LINUX_COMPILE_BY "@"
        LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") %s\n";

(that is code from 2.1.0 and 2.0.1)
what kernel patches are you using?

TIA,
Herbert

> Hiding /proc/version is not possible because some programs (e.g. 'pidof')
> use it to check whether /proc is mounted.
>
> Enrico

> _______________________________________________
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Wed Jan 4 16:20:44 2006

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 04 Jan 2006 - 16:20:47 GMT by hypermail 2.1.8