Subject: Re: [vserver] /proc/virtual seen in the guest
From: Herbert Poetzl <herbert@13thfloor.at>
Date: Sat, 22 Oct 2011 10:45:09 +0200

On Fri, Oct 21, 2011 at 06:06:51PM +0200, Ghislain wrote:
> hi,

>   i have a strange problem in the last vserver series about 
> /proc/virtual that is "visible" but not reachable in the guest:


> (root)> ls -la /proc/virtual
> total 0K
> dr-xr-xr-x   3 root root 0 Oct 21 17:27 .
> dr-xr-xr-x 150 root root 0 Oct 21 17:26 ..
> dr-xr-xr-x   2 root root 0 Oct 21 17:27 40410
> -r--r--r--   1 root root 0 Oct 21 18:03 info
> -r--r--r--   1 root root 0 Oct 21 18:03 status

> (root)> sudo vserver guest01 enter
> guest01:/%(root)> ls -la /proc/virtual
> ls: cannot open directory /proc/virtual: Permission denied

> It should be file not found and not permission denied:)

basically both is correct ... but we will see to restore 
the previous behaviour if possible (the change was caused
by a mainline change in the way lookups are handled)

> i had it on 3.0.4 and it still there in 3.0.7.

yep, not unexpected ...

best,
Herbert


> ------------------------------------------------------------------------------------
> Versions:
>                    Kernel: 3.0.7-vs2.3.1aq
>                    VS-API: 0x00020308
>                       VCI: 0x0000000013001f11
>              util-vserver: 0.30.216-pre2994; Oct 21 2011, 17:32:30

> Features:
>                        CC: gcc, gcc (Debian 4.4.5-8) 4.4.5
>                       CXX: g++, g++ (Debian 4.4.5-8) 4.4.5
>                  CPPFLAGS: ''
>                    CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W 
> -funit-at-a-time'
>                  CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W 
> -fmessage-length=0 -funit-at-a-time'
>                build/host: x86_64-pc-linux-gnu/x86_64-pc-linux-gnu
>              Use dietlibc: yes
>        Build C++ programs: yes
>        Build C99 programs: yes
>            Available APIs: compat,v11,fscompat,v13,net,v21,v22,v23,netv2
>             ext2fs Source: e2fsprogs
>     syscall(2) invocation: alternative
>       vserver(2) syscall#: 236/glibc
>                crypto api: nss
>           python bindings: yes
>    use library versioning: yes




> -- 

> Cordialement,
> Ghislain