Package: lvm-common
Version: 1.5.20
Severity: minor
Tags: patch
Hi,
the attached patch changes the lvm-common init.d script(s) to give the
newly created devices (if any) their proper SELinux contexts. On a
non-SELinux system, nothing is changed by the one-line patch.
--
David Härdeman
diff -ur ./lvm-common-1.5.20.orig/debian/init ./lvm-common-1.5.20/debian/init
--- ./lvm-common-1.5.20.orig/debian/init 2005-08-01 21:49:44.000000000
+0200
+++ ./lvm-common-1.5.20/debian/init 2006-11-07 23:40:39.000000000 +0100
@@ -56,6 +56,7 @@
chmod $MOD $DEV
chown --dereference $OWN $DEV
done
+ [ -x /sbin/restorecon ] && /sbin/restorecon -R /dev/mapper
;;
stop)