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/catchall_boolean.pyc
�
c�L]c@svddlZddlZejdde�ZejZddlTddlmZddlZdefd��YZ	dS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBs_eZed�Zed�Zed�ZdZd�Zd�Zd�Z	d�Z
d�ZRS(	sN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access on $TARGET_PATH.
    s:

    SELinux denied access requested by $SOURCE. The current boolean
    settings do not allow this access.  If you have not setup $SOURCE to
    require this access this may signal an intrusion attempt. If you do intend
    this access you need to change the booleans on this system to allow
    the access.
    s�
    Confined processes can be configured to run requiring different access, SELinux provides booleans to allow you to turn on/off
    access as needed.

    tcCs*tj|t�|jd�d|_dS(Nityellow(Rt__init__t__name__tset_prioritytlevel(tself((s5/usr/share/setroubleshoot/plugins/catchall_boolean.pyR5s
cCsWtj|d�}t|t�s7t|dd�}ntd�|dj�|dS(Nitencodingtutf8sIf you want to %si(tseobjecttboolean_desct
isinstancetunicodet_tlower(R
tavctargsttxt((s5/usr/share/setroubleshoot/plugins/catchall_boolean.pytget_if_text:scCstd�|d|dfS(Nssetsebool -P %s %sii(R(R
RR((s5/usr/share/setroubleshoot/plugins/catchall_boolean.pytget_do_text@scCsetd�|d}y9|drL|ddkrL|td�|d7}nWntk
r`nX|S(Ns?You must tell SELinux about this by enabling the '%s' boolean.
iitNones,You can read '%s' man page for more details.(Rt
IndexError(R
RRttext((s5/usr/share/setroubleshoot/plugins/catchall_boolean.pyt
get_then_textCs
cCs�|j|jj�}t|j�dkr�g}|j}d}|j}xQ|D]I}|sq|j|d�}n|j|j|d|d|f��qOW|SdS(NiRi(	t
check_for_mantscontextttypetlentboolstfix_descriptiontappendtreportR(R
Rtman_pagetreportstfixtfix_cmdR tb((s5/usr/share/setroubleshoot/plugins/catchall_boolean.pytanalyzeMs		
+(Rt
__module__Rtsummarytproblem_descriptionR!R'RRRRR)(((s5/usr/share/setroubleshoot/plugins/catchall_boolean.pyRs							
(
tgettexttosttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRR
R(((s5/usr/share/setroubleshoot/plugins/catchall_boolean.pyt<module>s