+
     6g4  c                   sz    ^ RI t ] P                  ! RRR7      t]P                   t^ RI5 ^ RIHt  ! R R]4      tR# )	i    Nzsetroubleshoot-pluginsT)Zfallback)Z*)Pluginc                   st   a  ] tR t^t o ]! R4      t]! R4      t]! R4      tRt]! R4      t	Rt
R tR tR	tV tR
# )pluginzT
    SELinux is preventing xen ($SOURCE_PATH) "$ACCESS" access to $TARGET_PATH.
    a  
    SELinux denied xen access to $TARGET_PATH.
    If this is a XEN image, it has to have a file context label of
    xen_image_t. The system is setup to label image files in directory /var/lib/xen/images
    correctly.  We recommend that you copy your image file to /var/lib/xen/images.
    If you really want to have your xen image files in the current directory, you can relabel $TARGET_PATH to be xen_image_t using chcon.  You also need to execute semanage fcontext -a -t xen_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 xen
    image it could indicate either a bug or an intrusion attempt.
    a  
    You can alter the file context by executing chcon -t xen_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 xen_image_t '$FIX_TARGET_PATH'"
    z,/usr/bin/chcon -t xen_image_t '$TARGET_PATH'z2You need to change the label on '$FIX_TARGET_PATH'z[# semanage fcontext -a -t xen_image_t '$FIX_TARGET_PATH'
# restorecon -v '$FIX_TARGET_PATH'c                sj    \         P                  ! V \        4       R V n        \	        R4      V n        R# )Tz%Change the file label to xen_image_t.N)r    __init____name__fixable_button_text)selfs   &./usr/share/setroubleshoot/plugins/xen_image.pyr   Zplugin.__init__5   s%    h'DE    c                s   VP                  R R.4      '       dr   VP                  VP                  VP                  ,           4      '       d@   VP	                  RR.4      '       d'   VP                  4       '       d   V P                  4       # R# )Zxend_tZvirsh_tZfileZdirN)Zmatches_source_typesZall_accesses_are_inZr_file_permsZr_dir_permsZhas_tclass_inZpath_is_not_standard_directoryZreport)r   Zavcs   &&r   analyzeZplugin.analyze:   sk    $$h	%:;;##C$4$4s$FGGvuo....00;;= r	   )r   r   N)r   Z
__module__Z__qualname__Z__firstlineno__r   ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZ	then_textZdo_textr   r
   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s`       	G   	   	O
 =GFGI&GF
 r	   r   )ZgettextZtranslationr   Zsetroubleshoot.utilZsetroubleshoot.Pluginr    r   ) r	   r   <module>r      s:   &  84H ! ((V (r	   