⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
setroubleshoot
/
plugins
/
__pycache__
/
View File Name :
xen_image.cpython-39.opt-1.pyc
a Z`4 @ sD d dl Z e jdddZej Zd dlT d dlmZ G dd deZdS ) Nzsetroubleshoot-pluginsT)Zfallback)*)Pluginc @ sD e Zd ZedZedZedZdZedZdZ dd Z d d ZdS )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 C s t | t d| _td| _d S )NTz%Change the file label to xen_image_t.)r __init____name__Zfixable_Zbutton_text)self r ./usr/share/setroubleshoot/plugins/xen_image.pyr 5 s zplugin.__init__c C sF | ddgr>||j|j r>|ddgr>| r>| S d S d S )NZxend_tZvirsh_tfiledir)Zmatches_source_typesZall_accesses_are_inZr_file_permsZr_dir_permsZ has_tclass_inZpath_is_not_standard_directoryZreport)r Zavcr r r analyze: s zplugin.analyzeN)r __module____qualname__r ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZ then_textZdo_textr r r r r r r s r )gettextZtranslationr Zsetroubleshoot.utilZsetroubleshoot.Pluginr r r r r r
s