Re: [Vserver] tagxid and files in the host context

From: Wilhelm Meier <meier_at_informatik.fh-kl.de>
Date: Tue 17 Jan 2006 - 08:14:45 GMT
Message-Id: <200601170914.45593.meier@informatik.fh-kl.de>

Am Dienstag, 17. Januar 2006 05:12 schrieb Herbert Poetzl:
> On Mon, Jan 16, 2006 at 11:37:39PM +0100, Wilhelm Meier wrote:
> > Hello,
> >
> > the VServer-Paper states that files which belong originally to the
> > host context 0 silently migrate to context id <nnn> if the were
> > modified from context <nnn>. I made the tests below, but the file
> > /mnt/x which was created in the host-context did not migrate.
>
> yes, good observation ...
>
> > Did I miss something?
>
> well, I guess no, the 'feature' was removed
> before vs2.0 was released because it caused

Do you mean the xid-migration?

> too much confusion, but of course, this might
> be an issue for correct accounting, if there
> are files which are _not_ unified but also
> _not_ tagged properly ...

In the case of unification and CoW link-breaking things should work, because
in the case of breaking the link, a new file is created with the correct
xid-tag, right?

>
> I will revive this feature and make it a
> compile time config option in the next devel
> release ...

Do you have a schedule for the next devel release?

>
> HTC,
> Herbert
>
> > gs mnt # uname -a
> > Linux gs 2.6.14-vs2.0.1-gentoo #1 SMP PREEMPT Sun Jan 1 18:49:51 CET 2006
> > i686 Intel(R) Pentium(R) M processor 1200MHz GenuineIntel GNU/Linux
> >
> > gs mnt # touch x
> > gs mnt # vcontext --create --xid 10 /bin/bash
> > New security context is 10
> > gs mnt # ls -l
> > total 12
> > drwx------ 2 root root 12288 Jan 17 00:57 lost+found
> > -rw-r--r-- 1 root root 0 Jan 17 01:19 x
> > gs mnt # ls > x
> > gs mnt # exit
> > exit
> > gs mnt # ls -l
> > total 13
> > drwx------ 2 root root 12288 Jan 17 00:57 lost+found
> > -rw-r--r-- 1 root root 13 Jan 17 01:20 x
> > gs mnt # lsxid
> > 0 .
> > 0 ./lost+found
> > 0 ./x
> > gs mnt # mount
> > /dev/hda1 on / type ext3 (rw,noatime)
> > proc on /proc type proc (rw)
> > sysfs on /sys type sysfs (rw)
> > udev on /dev type tmpfs (rw,nosuid)
> > devpts on /dev/pts type devpts (rw)
> > /dev/hdb1 on /tftproot type ext3 (rw,noatime)
> > shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
> > nfsd on /proc/fs/nfs type nfsd (rw)
> > rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
> > /dev/loop/0 on /mnt type ext2 (rw,tagxid)
> > gs mnt #
> > gs mnt # vcontext --create --xid 10 /bin/bash
> > New security context is 10
> > gs mnt # touch y
> > gs mnt # exit
> > exit
> > gs mnt # lsxid
> > 0 .
> > 0 ./lost+found
> > 0 ./x
> > 10 ./y
> > gs mnt #
> >
> > --
> > --
> > Wilhelm Meier
> > email: meier@informatik.fh-kl.de
> > _______________________________________________
> > Vserver mailing list
> > Vserver@list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver

-- 
--
Wilhelm Meier
email: meier@informatik.fh-kl.de
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Tue Jan 17 06:13:28 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 17 Jan 2006 - 06:13:30 GMT by hypermail 2.1.8