File: //etc/leapp/repos.d/system_upgrade/el7toel8/libraries/pam.pyc
�
��ic @ s2 d d l Z d d l Z d e f d � � YZ d S( i����Nt PAMc B s_ e Z d d d d d g Z d � Z d � Z d � Z d � Z e d � � Z e d
� � Z RS( s /etc/pam.d/system-auths /etc/pam.d/smartcard-auths /etc/pam.d/password-auths /etc/pam.d/fingerprint-auths /etc/pam.d/postloginc C s | j | � | _ d S( N( t parset modules( t selft config( ( sQ /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/pam.pyt __init__ s c C s t j d | t j � } | S( so
Parse configuration and return list of modules that are present in the
configuration.
s ^[ \t]*[^#\s]+.*(pam_\S+)\.so.*$( t ret findallt MULTILINE( R R t result( ( sQ /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/pam.pyR s
c C s
| | j k S( sX
Return True if the module exist in the configuration, False otherwise.
( R ( R t module( ( sQ /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/pam.pyt has! s c C s( x! | j D] } | | k r
t Sq
Wt S( s|
Return True if the configuration has any module which is not known to
the caller, False otherwise.
( R t Truet False( R t
known_modulesR
( ( sQ /usr/share/leapp-repository/repositories/system_upgrade/el7toel8/libraries/pam.pyt has_unknown_module'