File: //usr/lib/python3.9/site-packages/setroubleshoot/__pycache__/access_control.cpython-39.pyc
a
U+el � @ s� d Z ddlZddlZddlZddlmZ ddlmZ dgZ z
ej
Z
W n� ey� ddlZddl
Z
e�� d Ze
�de�r�dZ
n^e
�d e�r�dZ
nLe
�d
e�r�dZ
n:e
�de�r�d
Z
n(e
�de�r�dZ
ne
�de�r�dZ
ndZ
Y n0 G dd� d�ZdS )z�Access control for setroubleshoot. For now this is only used for
determining which users are allowed to connect to the server: see
UserServerAccess for more information.� N)�
get_config)�syslog_trace�ServerAccess� z^i\d86� z^x86_64z^(ppc|powerpc)� z
^(alpha|mips)� z^sparc�@ z^parisci@ c @ sZ e Zd ZdZddiddid�Zdd� Zdd � Zd
d� Zdd
� Zdd� Z dd� Z
dd� ZdS )r zg
Determine if a user should be given access to the server based
on the configuration file.
�wildcardTF)ZclientZfix_cmdc C s. i | _ ttj �� �D ]}| �|�| j |<