Package: udev
Version: 0.100-2.2
Severity: minor
Tags: patch
Hi,
the attached patch changes the udev init.d scripts so that the proper
context is set as early as possible for the devices that have been
created during the initramfs stage (and therefore lack any contexts).
For non-initramfs-boots, there shouldn't be any differences.
--
David Härdeman
diff -ur ./udev-0.100.orig/debian/udev.init ./udev-0.100/debian/udev.init
--- ./udev-0.100.orig/debian/udev.init 2006-11-08 00:05:12.000000000 +0100
+++ ./udev-0.100/debian/udev.init 2006-11-08 00:09:30.000000000 +0100
@@ -272,6 +272,10 @@
[ -d /proc/1 ] || mount -n /proc
fi
+ # If udev was started from initramfs, /dev already contains device nodes
+ # without an appropriate context
+ [ -x /sbin/restorecon ] && /sbin/restorecon -R /dev
+
# /dev/null must be created before udevd is started
make_extra_nodes