3 �h>`l � @ s� d Z ddlZddlZddlZddlmZ ddlmZ dgZ y ej Z W n� ek r� ddlZddl Z ej� d Ze jde�r�dZ n^e jd e�r�dZ nLe jd e�r�dZ n:e jde�r�d Z n(e jde�r�dZ ne jde�r�dZ ndZ Y nX 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 s2 i | _ x&ttj j� �D ]}| j|�| j |<