Chris PeBenito 24a7ae
Chris PeBenito 24a7ae
# LVM creates lock files in /var before /var is mounted
Chris PeBenito 24a7ae
# configure LVM to put lockfiles in /etc/lvm/lock instead
Chris PeBenito 24a7ae
# for this policy to work (unless you have no separate /var)
Chris PeBenito 24a7ae
Chris PeBenito 24a7ae
#
Chris PeBenito 24a7ae
# /etc
Chris PeBenito 24a7ae
#
Chris PeBenito bee546
/etc/lvm(/.*)?			context_template(system_u:object_r:lvm_etc_t,s0)
Chris PeBenito bee546
/etc/lvm/\.cache	--	context_template(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito bee546
/etc/lvm/archive(/.*)?		context_template(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito bee546
/etc/lvm/backup(/.*)?		context_template(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito bee546
/etc/lvm/lock(/.*)?		context_template(system_u:object_r:lvm_lock_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito bee546
/etc/lvmtab(/.*)?		context_template(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito bee546
/etc/lvmtab\.d(/.*)?		context_template(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito 24a7ae
#
Chris PeBenito 24a7ae
# /lib
Chris PeBenito 24a7ae
#
Chris PeBenito bee546
/lib/lvm-10(/.*)	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito bee546
/lib/lvm-200(/.*)	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito 24a7ae
#
Chris PeBenito 24a7ae
# /sbin
Chris PeBenito 24a7ae
#
Chris PeBenito bee546
/sbin/cryptsetup	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/dmsetup		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/dmsetup\.static	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/e2fsadm		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvchange		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvcreate		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvdisplay		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvextend		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvm		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvm\.static	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvmchange		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvmdiskscan	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvmiopversion	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvmsadc		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvmsar		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvreduce		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvremove		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvrename		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvresize		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvs		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/lvscan		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/pvchange		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/pvcreate		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/pvdata		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/pvdisplay		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/pvmove		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/pvremove		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/pvs		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/pvscan		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgcfgbackup	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgcfgrestore	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgchange		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgchange\.static	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgck		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgcreate		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgdisplay		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgexport		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgextend		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgimport		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgmerge		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgmknodes		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgreduce		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgremove		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgrename		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgs		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgscan		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgscan\.static	--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgsplit		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito bee546
/sbin/vgwrapper		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito 24a7ae
#
Chris PeBenito 24a7ae
# /usr
Chris PeBenito 24a7ae
#
Chris PeBenito bee546
/usr/sbin/lvm		--	context_template(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 24a7ae
Chris PeBenito 24a7ae
#
Chris PeBenito 24a7ae
# /var
Chris PeBenito 24a7ae
#
Chris PeBenito bee546
/var/lock/lvm(/.*)?		context_template(system_u:object_r:lvm_lock_t,s0)