udev strangeness with latest rawhide
Matias Féliciano
feliciano.matias at free.fr
Sat Oct 16 10:41:12 UTC 2004
Le samedi 16 octobre 2004 à 19:44 +1000, Russell Coker a écrit :
> Running the latest rawhide I get AVC messages indicating that /bin/udev
> (not /sbin/udev) is running in kernel_t during the early stages of system
> boot.
>
> /bin/udev is the file name used in the initrd!
$ zcat /boot/initrd-2.6.8-1.624.img | cpio -iv -m -d
$ ll -d bin sbin
drwxr-xr-x 2 root root 4096 oct 16 11:50 bin
lrwxrwxrwx 1 root root 3 oct 16 11:50 sbin -> bin
$ ll bin/udev
-rwxr-xr-x 1 root root 557808 oct 15 18:05 bin/udev
> So it seems that after the SE
> Linux policy is loaded (IE after /sbin/init has been run from the main root
> fs) there is still a copy of udev from the initrd being run.
There are some sleep() in udev. hotplug/udev/... are launched in
background. Modprobe/insmod can return even if udev has not finished its
job.
$ grep insmod init
insmod /lib/raid0.ko
insmod /lib/jbd.ko
insmod /lib/ext3.ko
It's how I understand hotplug/udev.
> This seems to
> be a bug in initrd that could lead to inconsistent behaviour. I'm not sure
> how this comes about (and of course apart from SE Linux messages in the
> kernel message log all the evidence is gone by the time the system is ready
> to login).
>
> Any suggestions on how to debug this?
>
> --
> http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages
> http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
> http://www.coker.com.au/postal/ Postal SMTP/POP benchmark
> http://www.coker.com.au/~russell/ My home page
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20041016/45b274bc/attachment.sig>
More information about the fedora-devel-list
mailing list