3 h>`l @ s d Z ddlZddlZddlZddlmZ ddlmZ dgZ y ej Z W n ek r ddlZddl Z ej d Ze jderdZ n^e jd erdZ nLe jd erdZ n:e jderd Z n(e jderdZ ne jderdZ ndZ Y nX G dd dZdS )zAccess 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_traceServerAccess z^i\d86 z^x86_64z^(ppc|powerpc) z ^(alpha|mips) z^sparc@ z^parisci@ c @ sZ e Zd ZdZddiddidZdd 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 |<