On Mon, 10 Oct 2005, Klaus Knopper wrote: > > Thanx, now I better understand. I am willing to test anything but as far as > > I can see unionfs-20050929-0844 + Junjiro's patch is doing just what I want. > > And the security bug seems to be solved. > > Cool. Well, hopefully Junjiro's patches make it into the next snapshot > as well. :-)
Oh there is still yet a little problem in inode.c (20050929-0844) with Junjiro's patch: ######################################################################### + insmod /l/src/t2/unionfs-20050929-0844/unionfs.ko + dmesg + grep 'Registering unionfs' + tail -1 Registering unionfs 20050929-0844 + mount -o ro 132.230.1.13:/q /a + ssh 132.230.1.13 grep /q /etc/exports /proc/mounts /etc/exports:/q 0.0.0.0/0.0.0.0(ro,no_root_squash,async) /proc/mounts:/dev/hda2 /q reiserfs rw 0 0 + mount -t tmpfs -o mode=755 none /diff + chmod 755 /diff + mount -t unionfs -o dirs=/diff=rw:/a=ro none /b + touch /b/x1 <------- OK + su mawa -c 'id; touch /b/x2' uid=1003(mawa) gid=1000 groups=1000 touch: cannot touch `/b/x2': Permission denied <------- OK + find /a /diff /b -ls 2 0 drwxr-xr-x 5 root root 104 Oct 10 15:31 /a 4 0 drwxr-xr-x 2 root root 48 Oct 10 15:31 /a/1 79135 0 drwxr-xr-x 2 root root 60 Oct 10 15:32 /diff 79154 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /diff/x1 1805 0 drwxr-xr-x 5 root root 60 Oct 10 15:32 /b 1806 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /b/x1 1807 0 drwxr-xr-x 2 root root 48 Oct 10 15:31 /b/1 + touch /b/1/x1 <------- SHOULD SUCCEED! touch: cannot touch `/b/1/x1': Permission denied <------- NOT OK + find /a /diff /b -ls 2 0 drwxr-xr-x 5 root root 104 Oct 10 15:31 /a 4 0 drwxr-xr-x 2 root root 48 Oct 10 15:31 /a/1 79135 0 drwxr-xr-x 2 root root 60 Oct 10 15:32 /diff 79154 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /diff/x1 1805 0 drwxr-xr-x 5 root root 60 Oct 10 15:32 /b 1806 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /b/x1 1807 0 drwxr-xr-x 2 root root 48 Oct 10 15:31 /b/1 + touch /b/1 <------- OK + find /a /diff /b -ls 2 0 drwxr-xr-x 5 root root 104 Oct 10 15:31 /a 4 0 drwxr-xr-x 2 root root 48 Oct 10 15:31 /a/1 79135 0 drwxr-xr-x 3 root root 80 Oct 10 15:32 /diff 79202 0 drwxr-xr-x 2 root root 40 Oct 10 15:32 /diff/1 <------- now subdir 1 exists in upper layer 79154 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /diff/x1 1805 0 drwxr-xr-x 5 root root 60 Oct 10 15:32 /b 1807 0 drwxr-xr-x 2 root root 40 Oct 10 15:32 /b/1 1806 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /b/x1 + touch /b/1/x1 <------- OK + find /a /diff /b -ls 2 0 drwxr-xr-x 5 root root 104 Oct 10 15:31 /a 4 0 drwxr-xr-x 2 root root 48 Oct 10 15:31 /a/1 79135 0 drwxr-xr-x 3 root root 80 Oct 10 15:32 /diff 79202 0 drwxr-xr-x 2 root root 60 Oct 10 15:32 /diff/1 79215 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /diff/1/x1 79154 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /diff/x1 1805 0 drwxr-xr-x 6 root root 80 Oct 10 15:32 /b 1807 0 drwxr-xr-x 2 root root 60 Oct 10 15:32 /b/1 1808 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /b/1/x1 1806 0 -rw-r--r-- 1 root root 0 Oct 10 15:32 /b/x1 ######################################################################### Regards, Martin -- Martin Walter University of Freiburg i.Br. --- Germany --- Fon/Fax: +49 761 203-4651/-4643 Rechenzentrum der Universitaet, Hermann-Herder-Str.10, D-79104 Freiburg i.Br. _______________________________________________ unionfs mailing list unionfs@mail.fsl.cs.sunysb.edu http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs