MOON
Server: Apache
System: Linux server2.shieldcogroup.com 3.10.0-1160.119.1.el7.tuxcare.els12.x86_64 #1 SMP Fri Nov 8 05:49:38 UTC 2024 x86_64
User: jacom (1029)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //etc/leapp/repos.d/system_upgrade/el7toel8/libraries/tcpwrappersutils.pyo
�
��ic@s4ddlZd�Zd�Zd�Zd�ZdS(i����NcCsd}d}x�|t|�kr�|jd|�}|jd|�}|dkr]t|�n|}|dkr{t|�n|}t||�}|tj|||!�7}|t|�kr�||dkr�|d7}q�|d7}n|d}qW|d7}|S(	Nt^it*t?s.*t.it$(tlentfindtmintretescape(tpatterntregextpart_beginningtix1tix2tpart_end((s^/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/tcpwrappersutils.pyt_build_regexs 


cCs>|j�dkrtSt|�}tj||tj�dk	S(Ntall(tlowertTrueRRtmatcht
IGNORECASEtNone(R
tstringR((s^/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/tcpwrappersutils.pyt_pattern_matchesscCs�y|jd�}Wntk
r2t|�}nX|| }t}xt|D]l}y3|jd�}|ddkrxwJn|| }Wntk
r�|}nXt||�rJt}PqJqJW||d}	|	s�t}
nt|	||d�}
|o�|
S(Ntexceptt@ii(tindext
ValueErrorRtFalseRRt_daemon_list_matches_daemon(tdaemon_listtdaemontrecursion_depthtcur_list_endtcur_listtmatches_cur_listtitemtixR
t	next_listtmatches_next_list((s^/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/tcpwrappersutils.pyR#s,




	cCsPxI|jD]>}g|jD]}|j�^q}t||d�r
tSq
WtS(s�
    Returns True if the specified tcp_wrappers configuration applies to the specified daemon.
    Otherwise returns False.

    This information is intended to be used in the Checks phase to check whether there is
    any tcp_wrappers configuration that the user needs to migrate manually and whether we
    should inhibit the upgrade, so that the upgraded system is not insecure.

    :param facts: A TcpWrappersFacts representation of the tcp_wrappers configuration
    :param daemon: The daemon name
    i(tdaemon_liststvalueRRRR(tfactsR RR%R*((s^/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/tcpwrappersutils.pytconfig_applies_to_daemonCs
"(RRRRR,(((s^/usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/tcpwrappersutils.pyt<module>s