[vserver] squeeze quota issue with /proc/mounts

From: Ghislain <gadnet_at_aqueos.com>
Date: Thu 08 Sep 2011 - 10:03:21 BST
Message-ID: <4E6884D9.2050503@aqueos.com>

hi,

   Squeeze quota tools are now using /proc/mounts instead of /etc/mtab
for their quota work. Therefor it fails now as /proc/mounts is empty. I
wanted to know if there is a secure way to make this work again.

Some solution a firend told me :

- let /proc/mounts leak from the host ( securtity risk ?) by removing
the flag:
          28 0x01000000 HIDE_MOUNT Hide entries in
/proc/$pid/mounts
- use in the mtab the real partition name in
/etc/vserver/guest/apps/init/mtab instead of hdvX
- use vrsetup on the real name instead of hdvX so it create the
/dev/realname instead of /dev/hdvX in the guest

Do you have any better solution , do it sound right for you ?

ps: i use an old kernel: 2.6.36-vs2.3.0.36.36aq, just waiting to
replace with 3.0 soon. Perhaps this si allready solved in the new versions ?

-- 
Cordialement,
Ghislain

Received on Thu Sep 8 10:03:45 2011
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 08 Sep 2011 - 10:03:46 BST by hypermail 2.1.8