https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/sos/report/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/sos/report/plugins/__pycache__/named.cpython-310.pyc
o

-�_g�	�@sbddlmZmZddlmZmZmZmZGdd�de�ZGdd�dee�Z	Gdd�deee�Z
d	S)
�)�join�normpath)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPluginc@s8eZdZdZdZdZdZeZdd�Zdd�Z	d	d
�Z
dS)�NamedzBIND named server�named)�system�services�network�/etc/named.confcCsb|�ddg�|jD]$}|�|�r.|�||�|�g�|�t|�|�d�t|�|�d�g�q
dS)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�cfg�r�:/usr/lib/python3/dist-packages/sos/report/plugins/named.py�setups �

����zNamed.setupcCs |�d|�}|rt|d�SdS)z3 grab directory path from named{conf,boot}
        zdirectory\s+\"(.*)\"r�)�do_regex_find_allr)r�config_file�directory_listrrrr&s�zNamed.get_dns_dircCsd}d}|�|j||�dS)Nz(\s*arg \"password )[^\"]*z\1******)�do_file_sub�
named_conf)r�match�substrrr�postproc0szNamed.postprocN)�__name__�
__module__�__qualname__�
short_desc�plugin_name�profilesrrrrr rrrrr
s
rcs0eZdZdZdZedfZdZ�fdd�Z�ZS)�RedHatNamedr
)r
z/etc/named.boot�/etc/sysconfig/named)�bindcs6t���|�d�|�d�|�d�|�d�dS)Nz/etc/named/r(zklist -ket /etc/named.keytabz/etc/named.keytab)�superrr�add_cmd_outputr�r��	__class__rrr>s




zRedHatNamed.setup)	r!r"r#rr�files�packagesr�
__classcell__rrr-rr'6sr'cs2eZdZdZdZdZeddfZ�fdd�Z�ZS)�DebianNamed)�/etc/bind/named.conf)�bind9r3z/etc/bind/named.conf.optionsz/etc/bind/named.conf.localcst���|�d�dS)Nz
/etc/bind/)r*rrr,r-rrrOs
zDebianNamed.setup)	r!r"r#r/r0rrrr1rrr-rr2Fs�r2N)�os.pathrr�sos.report.pluginsrrrrrr'r2rrrr�<module>s
)

https://t.me/RX1948 - 2025