aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/devfs.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.d/devfs.in b/init.d/devfs.in
index ae5f03bf..196bc57d 100644
--- a/init.d/devfs.in
+++ b/init.d/devfs.in
@@ -92,9 +92,21 @@ seed_dev()
done
}
+restorecon_dev()
+{
+ if [ -x /sbin/restorecon ]; then
+ ebegin "Set SELinux labels in /dev"
+ restorecon -rF /dev >/dev/null 2>&1
+ eend $?
+ fi
+
+ return 0
+}
+
start()
{
mount_dev
seed_dev
+ restorecon_dev
return 0
}