I have a (reproducable) problem with directory access rights.

First I create a simple test squashfs:

mddir test
cd test
mkdir secure
echo "abc" >secure/abc.txt
chmod go-rwx secure
cd ..
mksquashfs test test.sfs

then I mount aufs with a ramisk-layer above the squashfs (mount-point /save):

losetup /dev/loop2 test.sfs
mkdir /mnt/mp1
mount -t tmpfs -o size=10000k tmpfs /mnt/mp1
mkdir /mnt/mp2
mount /dev/loop2 /mnt/mp2
mount -t aufs -o dirs=/mnt/mp1:/mnt/mp2 none /save

then I make the "secure"-directory accessable for everybody:

cd /save
chmod a+rx secure

then I try to act as an unprivileged user ("sam"):

su sam
ls -ld secure
drwxr-xr-x 2 root root 40 2008-02-07 00:35 secure

everything looks fine, but

ls secure/

returns "ls: cannot open directory secure/: Permission denied"

also

cd secure

returns "bash: cd: secure: Permission denied"

I downloaded the current "monday build" of aufs on January, 25th and am using 
the new 2.6.24 kernel.

I would be happy with any clues how to get around this problem!

Greetings, Michael

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to