Simple to reproduce problem that has been introduced in the last few months.

Consider the following situation where /dev is in aufs. and where /.rw 
is the read/write part of the aufs filesystem:

mknod /dev/foo c 27 3
chown root:audio /dev/foo
chmod 660 /dev/foo
ls -l /dev/foo /.rw/dev/foo
crw-rw-r-- 1 root audio 27, 3 2008-11-13 10:41 /dev/foo
crw-r--r-- 1 root root 27, 3 2008-11-13 10:41 /.rw/dev/foo

The permissions and ownership are not propagated to the underlying 
filesystem.  Later on, at some random time, the perms from the /.rw 
partition 'leak' back to the top level, appearing to the user as if the 
perms/ownership have spontaneously changed.

Only happens with device nodes - not important if they are in /dev or not.

Bug still exists in current (2008/11/13) CVS.

cheers,

Kris

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Reply via email to