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/openvpn.pyo
�
c�L]c@stddlZejdde�ZejZddlTddlmZddlZddlTdefd��YZ	dS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBsYeZed�Zed�Zed�Zd�Zd�Zd�Zd�Z	d�Z
RS(sN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
    s�
    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.
    s�
    You can restore the default system context to this file by executing the
    restorecon command.  
    # restorecon -R /root/.ssh
    cCs(|ddkrtd�Std�SdS(NitmovesjIf you want to mv $TARGET_BASE_PATH to standard location so that $SOURCE_BASE_PATH can have $ACCESS accessslIf you want to modify the label on $TARGET_BASE_PATH so that $SOURCE_BASE_PATH can have $ACCESS access on it(t_(tselftavctargs((s,/usr/share/setroubleshoot/plugins/openvpn.pytget_if_text/s
cCs(|ddkrtd�Std�SdS(NiRs4you must move the cert file to the ~/.cert directorysyou must fix the labels.(R(RRR((s,/usr/share/setroubleshoot/plugins/openvpn.pyt
get_then_text5s
cCs|ddkrdSdSdS(NiRs5# mv $TARGET_PATH ~/.cert
# restorecon -R -v ~/.cert
sS# semanage fcontext -a -t home_cert_t $TARGET_PATH
# restorecon -R -v $TARGET_PATH
((RRR((s,/usr/share/setroubleshoot/plugins/openvpn.pytget_do_text;scCs*tj|t�|jd�d|_dS(Nityellow(Rt__init__t__name__tset_prioritytlevel(R((s,/usr/share/setroubleshoot/plugins/openvpn.pyR
Es
cCsk|jdg�rg|jddg�rg|j|j�rg|jdg�rg|jd�|jd�gSdS(	Nt	openvpn_ttuser_home_tt
user_tmp_ttfileRtfixlabel(smoveN(RN(tmatches_source_typestmatches_target_typestall_accesses_are_intread_file_permst
has_tclass_intreporttNone(RR((s,/usr/share/setroubleshoot/plugins/openvpn.pytanalyzeJs(Rt
__module__Rtsummarytproblem_descriptiontfix_descriptionR	R
RR
R(((s,/usr/share/setroubleshoot/plugins/openvpn.pyRs						
	(
tgettextttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRtoststatR(((s,/usr/share/setroubleshoot/plugins/openvpn.pyt<module>s