new kernel patch
The new version seems to have a bug related to file labelling that affects devfs.
If I type "ls -l /dev/floppy/0" on a devfs system and the floppy.o module is not loaded then the kernel will signal the devfsd daemon (through /dev/.devfsd) that this has been attempted. In a default configuration the devfsd will then run "modprobe /dev/floppy/0" and as the modutils config has an alias for /dev/floppy/0 to "floppy" the floppy.o device driver is loaded.
With this new kernel it appears that the labelling takes place at a different stage such that the devfsd gets to access a device that is not fully labelled.
You can see the log entry below, it does not log the action, and it claims that there is a file named /dev/floppy which is bogus. There can be no file under /dev on a devfs system so any reference to tclass=file and dev=00:06 means a kernel bug. Without reading the kernel code in question I guess that file is the default tclass (defined to 0?).
But interestingly after logging >20 of the following messages the kernel then proceeds to assign the right type to the device nodes that have been created and then everything goes fine. Of course I expect this to fail catastrophically in the case of device nodes that need my devfs shared object to label them, but I haven't got around to testing this yet.
avc: denied { } for pid=65 exe=/sbin/devfsd path=/floppy dev=00:06 ino=527 scontext=system_u:system_r:devfsd_t tcontext=system_u:object_r:unlabeled_t tclass=file
PS The reason my system is unable to run my usual email program is due to a conflict between unofficial Debian KDE packages that I've been using and the new official Debian package og QT. Just in case you were wondering. ;)
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.