[Vserver] tagxid and files in the host context

From: Wilhelm Meier <meier_at_informatik.fh-kl.de>
Date: Mon 16 Jan 2006 - 22:37:39 GMT
Message-Id: <200601162337.40217.meier@informatik.fh-kl.de>

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.
Did I miss something?

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
Received on Mon Jan 16 20:36:25 2006
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Mon 16 Jan 2006 - 20:36:30 GMT by hypermail 2.1.8