HEX
Server: Apache
System: Linux hp3-stn-1011028.hostingp3.local 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: csh958633 (951153)
PHP: 8.3.30
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: //usr/share/setroubleshoot/plugins/qemu_blk_image.pyo
�
c�L]c@s^ddlZejdde�ZejZddlTddlmZdefd��YZdS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBs\eZed�Zed�Zed�ZdZed�Zed�Zd�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's2You 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'cCstj|t�dS(N(Rt__init__t__name__(tself((s3/usr/share/setroubleshoot/plugins/qemu_blk_image.pyR1scCsO|jdg�rG|j|j|j�rG|jdg�rG|j�SdSdS(Ntqemu_ttblk_file(tmatches_source_typestall_accesses_are_int
rw_file_permstr_dir_permst
has_tclass_intreporttNone(Rtavc((s3/usr/share/setroubleshoot/plugins/qemu_blk_image.pytanalyze4s

(Rt
__module__t_tsummarytproblem_descriptiontfix_descriptiontfix_cmdt	then_texttdo_textRR(((s3/usr/share/setroubleshoot/plugins/qemu_blk_image.pyRs					(tgettextttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRR(((s3/usr/share/setroubleshoot/plugins/qemu_blk_image.pyt<module>s