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/restorecon_source.pyc
�
c�L]c@s�ddlZejdde�ZejZddlTddlmZddlZddlTddl	Z	ddl	Z	defd��YZ
dS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBsheZed�ZdZed�Zd�Zed�Zd�Zed�Z	dZ
d�Zd	�ZRS(
sN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
    s/sbin/restorecon $SOURCE_PATHs�
    You can restore the default system context to this file by executing the
    restorecon command.  restorecon '$SOURCE_PATH'.
    cCstd�|dS(Nsm
    SELinux denied access requested by $SOURCE. $SOURCE_PATH may
    be mislabeled.  $SOURCE_PATH default SELinux type is
    <B>%s</B>, but its current type is <B>$SOURCE_TYPE</B>. Changing
    this file back to the default type may fix your problem.
    <p>
    This file could have been mislabeled either by user error, or if an normally confined application
    was run under the wrong domain.
    <p>
    However, this might also indicate a bug in SELinux because the file should not have been labeled
    with this type.
    <p>
    If you believe this is a bug, please file a bug report against this package.
    i(t_(tselftavctargs((s6/usr/share/setroubleshoot/plugins/restorecon_source.pytget_problem_description,s
sGIf you want to fix the label. 
$SOURCE_PATH default label should be %s.cCs|j|dS(Ni(tif_text(RRR((s6/usr/share/setroubleshoot/plugins/restorecon_source.pytget_if_text>ssyou can run restorecon.s"# /sbin/restorecon -v $SOURCE_PATHcCsBtj|t�|jd�d|_t|_td�|_dS(NidtgreensRestore
Context(	Rt__init__t__name__tset_prioritytleveltTruetfixableRtbutton_text(R((s6/usr/share/setroubleshoot/plugins/restorecon_source.pyRDs

		cCs�|js
dS|jdkr dS|jddkr7dSy�tj|jjd�t�d}|jd�d}tj|jjd��d}|jd�d}||kr�|j	d|f�SWnt
k
r�nXdS(Nit/t"it:i(tquery_environmenttNonetspathtselinuxtmatchpathcontstriptS_IFREGtsplitt
getfilecontreporttOSError(RRtmcont	mcon_typetgcont	gcon_type((s6/usr/share/setroubleshoot/plugins/restorecon_source.pytanalyzeKs 	"
(
R
t
__module__Rtsummarytfix_cmdtfix_descriptionRR	R
t	then_texttdo_textRR%(((s6/usr/share/setroubleshoot/plugins/restorecon_source.pyR s					(tgettextttranslationRRtsetroubleshoot.utiltsetroubleshoot.PluginRtoststatRR(((s6/usr/share/setroubleshoot/plugins/restorecon_source.pyt<module>s