Bug#397523: lvm-common: add selinux contexts to devices after
creating them in the init script
David Härdeman
david at hardeman.nu
Tue Nov 7 23:41:48 CET 2006
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
-------------- next part --------------
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)
More information about the pkg-lvm-maintainers
mailing list