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__/openvpn.cpython-39.pyc
a

�Z`�@sTddlZejddd�ZejZddlTddlmZddlZddlTGdd�de�ZdS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@sLeZdZed�Zed�Zed�Zdd�Zdd�Zdd	�Z	d
d�Z
dd
�ZdS)�pluginzN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
    z�
    SELinux denied access requested by $SOURCE. $TARGET_PATH may
    be mislabeled. openvpn is allowed to read content in home directory if it
    is labeled correctly.
    z�
    You can restore the default system context to this file by executing the
    restorecon command.  
    # restorecon -R /root/.ssh
    cCs |ddkrtd�Std�SdS)Nr�movezjIf you want to mv $TARGET_BASE_PATH to standard location so that $SOURCE_BASE_PATH can have $ACCESS accesszlIf you want to modify the label on $TARGET_BASE_PATH so that $SOURCE_BASE_PATH can have $ACCESS access on it��_��self�avc�args�r�,/usr/share/setroubleshoot/plugins/openvpn.py�get_if_text/szplugin.get_if_textcCs |ddkrtd�Std�SdS)Nrrz4you must move the cert file to the ~/.cert directoryzyou must fix the labels.rrrrr
�
get_then_text5szplugin.get_then_textcCs|ddkrdSdSdS)Nrrz5# mv $TARGET_PATH ~/.cert
# restorecon -R -v ~/.cert
zS# semanage fcontext -a -t home_cert_t $TARGET_PATH
# restorecon -R -v $TARGET_PATH
rrrrr
�get_do_text;szplugin.get_do_textcCs t�|t�|�d�d|_dS)N�Zyellow)r�__init__�__name__Zset_priority�level)r	rrr
rEs
zplugin.__init__cCsJ|�dg�rF|�ddg�rF|�|j�rF|�dg�rF|�d�|�d�gSdS)NZ	openvpn_tZuser_home_tZ
user_tmp_t�file)rN)ZfixlabelN)Zmatches_source_typesZmatches_target_typesZall_accesses_are_inZread_file_permsZ
has_tclass_inZreport)r	r
rrr
�analyzeJs�
�
�zplugin.analyzeN)r�
__module__�__qualname__rZsummaryZproblem_descriptionZfix_descriptionrrrrrrrrr
rs
r)	�gettextZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginr�os�statrrrrr
�<module>s