← Back
Editing: qemu_blk_image.cpython-312.pyc
� �Z`8 � �x � d dl Z e j dd�� Zej Zd dl� d dlmZ G d� de� Zy) � Nzsetroubleshoot-pluginsT)�fallback)�*)�Pluginc �l � e Zd Z ed� Z ed� Z ed� ZdZ ed� Z ed� Z d� Z d� Zy ) �pluginzN SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH. a� SELinux denied svirt 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 virtualization image it could indicate either a bug or an intrusion attempt. a 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'" z-/usr/bin/chcon -t virt_image_t '$TARGET_PATH'z2You need to change the label on '$FIX_TARGET_PATH'z\# semanage fcontext -a -t virt_image_t '$FIX_TARGET_PATH' # restorecon -v '$FIX_TARGET_PATH'c � � t j | t � | j d� d| _ t d� | _ y )N�<