File: //usr/share/setroubleshoot/plugins/qemu_blk_image.pyo
�
c�L]c @ s^ d d l Z e j d d e �Z e j Z d d l Td d l m Z d e f d � � YZ d S( i����Ns setroubleshoot-pluginst fallback( t *( t Plugint pluginc B s\ e Z e d � Z e d � Z e d � Z d Z e d � Z e d � Z d � Z d � Z
RS( sN
SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
s�
SELinux denied qemu access to the block device $TARGET_PATH.
If this is a virtualization image, it needs to be labeled with a virtualization file context (virt_image_t). You can relabel $TARGET_PATH to be virt_image_t using chcon. You also need to execute semanage fcontext -a -t virt_image_t '$FIX_TARGET_PATH' to add this
new path to the system defaults. If you did not intend to use $TARGET_PATH as a qemu
image it could indicate either a bug or an intrusion attempt.
s
You can alter the file context by executing chcon -t virt_image_t '$TARGET_PATH'
You must also change the default file context files on the system in order to preserve them even on a full relabel. "semanage fcontext -a -t virt_image_t '$FIX_TARGET_PATH'"
s$ chcon -t virt_image_t '$TARGET_PATH's2 You need to change the label on '$FIX_TARGET_PATH's\ # semanage fcontext -a -t virt_image_t '$FIX_TARGET_PATH'
# restorecon -v '$FIX_TARGET_PATH'c C s t j | t � d S( N( R t __init__t __name__( t self( ( s3 /usr/share/setroubleshoot/plugins/qemu_blk_image.pyR 1 s c C sO | j d g � rG | j | j | j � rG | j d g � rG | j � Sd Sd S( Nt qemu_tt blk_file( t matches_source_typest all_accesses_are_int
rw_file_permst r_dir_permst
has_tclass_int reportt None( R t avc( ( s3 /usr/share/setroubleshoot/plugins/qemu_blk_image.pyt analyze4 s
( R t
__module__t _t summaryt problem_descriptiont fix_descriptiont fix_cmdt then_textt do_textR R ( ( ( s3 /usr/share/setroubleshoot/plugins/qemu_blk_image.pyR s ( t gettextt translationt TrueR t setroubleshoot.utilt setroubleshoot.PluginR R ( ( ( s3 /usr/share/setroubleshoot/plugins/qemu_blk_image.pyt <module> s