Chris PeBenito 17de1b
Chris PeBenito 17de1b
# LVM creates lock files in /var before /var is mounted
Chris PeBenito 17de1b
# configure LVM to put lockfiles in /etc/lvm/lock instead
Chris PeBenito 17de1b
# for this policy to work (unless you have no separate /var)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#
Chris PeBenito 0f9a2b
# /bin
Chris PeBenito 0f9a2b
#
Chris PeBenito 0f9a2b
ifdef(`distro_gentoo',`
Chris PeBenito 0f9a2b
/bin/cryptsetup		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 0f9a2b
')
Chris PeBenito 0f9a2b
Chris PeBenito 0f9a2b
#
Chris PeBenito 17de1b
# /etc
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
/etc/lvm(/.*)?			gen_context(system_u:object_r:lvm_etc_t,s0)
Chris PeBenito 17de1b
/etc/lvm/\.cache	--	gen_context(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 17de1b
/etc/lvm/archive(/.*)?		gen_context(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 17de1b
/etc/lvm/backup(/.*)?		gen_context(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 17de1b
/etc/lvm/lock(/.*)?		gen_context(system_u:object_r:lvm_lock_t,s0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
/etc/lvmtab(/.*)?		gen_context(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 17de1b
/etc/lvmtab\.d(/.*)?		gen_context(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# /lib
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
/lib/lvm-10/.*		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/lib/lvm-200/.*		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# /sbin
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
/sbin/cryptsetup	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/dmraid		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/dmsetup		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/dmsetup\.static	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/e2fsadm		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvchange		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvcreate		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvdisplay		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvextend		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvm		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvm\.static	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvmchange		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvmdiskscan	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvmiopversion	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvmsadc		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvmsar		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvreduce		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvremove		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvrename		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvresize		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvs		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/lvscan		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/multipathd	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/pvchange		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/pvcreate		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/pvdata		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/pvdisplay		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/pvmove		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/pvremove		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/pvs		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/pvscan		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgcfgbackup	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgcfgrestore	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgchange		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgchange\.static	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgck		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgcreate		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgdisplay		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgexport		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgextend		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgimport		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgmerge		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgmknodes		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgreduce		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgremove		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgrename		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgs		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgscan		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgscan\.static	--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgsplit		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
/sbin/vgwrapper		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# /usr
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
/usr/sbin/clvmd		--	gen_context(system_u:object_r:clvmd_exec_t,s0)
Chris PeBenito 17de1b
/usr/sbin/lvm		--	gen_context(system_u:object_r:lvm_exec_t,s0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# /var
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
/var/cache/multipathd(/.*)?	gen_context(system_u:object_r:lvm_metadata_t,s0)
Chris PeBenito a5e213
/var/lock/lvm(/.*)?		gen_context(system_u:object_r:lvm_lock_t,s0)
Chris PeBenito a5e213
/var/run/multipathd.sock -s	gen_context(system_u:object_r:lvm_var_run_t,s0)
Chris PeBenito d6d16b
/var/lib/multipath(/.*)?	gen_context(system_u:object_r:lvm_var_lib_t,s0)