%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/sos/report/plugins/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/named.cpython-312.pyc

�

i��dP
��t�ddlmZmZmZmZddlmZmZGd�de�ZGd�dee�Z	Gd�deee�Z
y	)
�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin)�join�normpathc�2�eZdZdZdZdZdZeZd�Zd�Z	d�Z
y)	�NamedzBIND named server�named)�system�services�network�/etc/named.confc	�>�|jddg�|jD]{}|j|�s�|j||j|�g�|j	t|j|�d�t|j|�d�g��}y)Nz/etc/default/bindz/var/log/named*.logz
chroot/devzchroot/proc)�
add_copy_spec�config_files�path_exists�get_dns_dir�add_forbidden_pathr)�self�cfgs  �:/usr/lib/python3/dist-packages/sos/report/plugins/named.py�setupzNamed.setups�������!�
�	��$�$�		�C�����$��"�"���$�$�S�)�$���'�'���)�)�#�.��=���)�)�#�.�
�>�)��
		�c�H�|jd|�}|rt|d�Sy)z3 grab directory path from named{conf,boot}
        zdirectory\s+\"(.*)\"r�)�do_regex_find_allr)r�config_file�directory_lists   rrzNamed.get_dns_dir&s0���/�/�0G�0;�=����N�1�-�.�.�rc�F�d}d}|j|j||�y)Nz(\s*arg \"password )[^\"]*z\1******)�do_file_sub�
named_conf)r�match�substs   r�postproczNamed.postproc0s"��-����������%��7rN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesr"rrrr%�rrr
r

s*��$�J��K�0�H�"�J��L�� �8rr
c�2��eZdZdZdZedfZdZ�fd�Z�xZS)�RedHatNamedr)rz/etc/named.boot�/etc/sysconfig/named)�bindc���tt|��|jd�|jd�|j	d�|jd�y)Nz/etc/named/r/zklist -ket /etc/named.keytabz/etc/named.keytab)�superr.rr�add_cmd_outputr�r�	__class__s �rrzRedHatNamed.setup>sN���
�k�4�&�(����=�)����1�2����:�;���� 3�4�r)	r&r'r(r"r�files�packagesr�
__classcell__�r5s@rr.r.6s)���"�J�'�L�
�/�0�E��H��rr.c�4��eZdZdZdZdZeddfZ�fd�Z�xZS)�DebianNamed)�/etc/bind/named.conf)�bind9r<z/etc/bind/named.conf.optionsz/etc/bind/named.conf.localc�L��tt|��|jd�y)Nz
/etc/bind/)r2r;rrr4s �rrzDebianNamed.setupPs!���
�k�4�&�(����<�(�r)	r&r'r(r6r7r"rrr8r9s@rr;r;Gs,���%�E��H�'�J��2�0�2�L��rr;N)�sos.report.pluginsrrrr�os.pathrrr
r.r;r,rr�<module>rAs<��P�O�"�&8�F�&8�R�%���"�%��|�r

Zerion Mini Shell 1.0