HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/setroubleshoot/plugins/__pycache__/file.cpython-39.pyc
a

�Z`��@sDddlZejddd�ZejZddlTddlmZGdd�de�ZdS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@s\eZdZed�Zed�Zed�Zdd�Zdd�Zdd	�Z	d
d�Z
dd
�Zdd�Zdd�Z
dS)�pluginzE
    SELinux is preventing access to a file labeled unlabeled_t.
    aT
    SELinux permission checks on files labeled unlabeled_t are being
    denied. unlabeled_t is a context the SELinux kernel gives to files
    that do not have a label. This indicates a serious labeling
    problem. No files on an SELinux box should ever be labeled unlabeled_t.
    If you have just added a disk drive to the system, you can
    relabel it using the restorecon command. For example if you saved the
home directory from a previous installation that did not use SELinux, 'restorecon -R -v /home' will fix the labels.  Otherwise you should
    relabel the entire file system.
    zz
    You can execute the following command as root to relabel your
    computer system: "touch /.autorelabel; reboot"
    cCs|dkrtd�Std�SdS)N��rz.This is caused by a newly created file system.z:If you think this is caused by a badly mislabeled machine.��_��self�avc�args�r
�)/usr/share/setroubleshoot/plugins/file.py�get_if_text/szplugin.get_if_textcCs|dkrtd�Std�SdS)Nrzyou need to add labels to it.zyou need to fully relabel.rr	r
r
r�
get_then_text5szplugin.get_then_textcCs|dkrdSdSdS�Nrz#/sbin/restorecon -R -v $TARGET_PATHztouch /.autorelabel; rebootr
r	r
r
r�get_do_text;szplugin.get_do_textcCs|dkrdSdSdSrr
r	r
r
r�get_fix_cmdAszplugin.get_fix_cmdcCs6|dkrtd�|_|�d�ntd�|_|�d�dS)NrzTry to fix the label.�Fz/Relabel the whole file system. Includes reboot!�)rZbutton_textZset_priority)r
rr
r
r�	init_argsGs


zplugin.init_argscCst�|t�d|_d|_dS)NZgreenT)r�__init__�__name__�levelZfixable)r
r
r
rrOszplugin.__init__cCs<|�dg�r4g}|�|�d��|�|�d��|SdSdS)NZunlabeled_tr)�r)Zmatches_target_types�appendZreport)r
rZreportsr
r
r�analyzeTszplugin.analyzeN)r�
__module__�__qualname__rZsummaryZproblem_descriptionZfix_descriptionrrrrrrrr
r
r
rrsr)�gettextZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginrrr
r
r
r�<module>s