HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib/python3.6/site-packages/sos/report/plugins/__pycache__/named.cpython-36.pyc
3

3��dP
�@sbddlmZmZmZmZddlmZmZGdd�de�ZGdd�dee�Z	Gdd�deee�Z
d	S)
�)�Plugin�RedHatPlugin�DebianPlugin�UbuntuPlugin)�join�normpathc@s8eZdZdZdZdZdZeZdd�Zd	d
�Z	dd�Z
d
S)�NamedzBIND named serverZnamed�system�services�networkz/etc/named.confcCsf|jddg�xR|jD]H}|j|�r|j||j|�g�|jt|j|�d�t|j|�d�g�qWdS)Nz/etc/default/bindz/var/log/named*.logz
chroot/devzchroot/proc)�
add_copy_spec�config_filesZpath_exists�get_dns_dir�add_forbidden_pathr)�selfZcfg�r�/usr/lib/python3.6/named.py�setups
zNamed.setupcCs$|jd|�}|rt|d�SdSdS)z3 grab directory path from named{conf,boot}
        zdirectory\s+\"(.*)\"r�N)Zdo_regex_find_allr)rZconfig_fileZdirectory_listrrrr&s
zNamed.get_dns_dircCsd}d}|j|j||�dS)Nz(\s*arg \"password )[^\"]*z\1******)Zdo_file_sub�
named_conf)r�matchZsubstrrr�postproc0szNamed.postprocN)r	r
r)�__name__�
__module__�__qualname__Z
short_descZplugin_nameZprofilesrr
rrrrrrrr
s
rcs0eZdZdZdZedfZdZ�fdd�Z�ZS)	�RedHatNamed�/etc/named.conf�/etc/named.bootz/etc/sysconfig/named�bindcs:tt|�j�|jd�|jd�|jd�|jd�dS)Nz/etc/named/z/etc/sysconfig/namedzklist -ket /etc/named.keytabz/etc/named.keytab)�superrrrZadd_cmd_outputr)r)�	__class__rrr>s



zRedHatNamed.setup)rr)r)	rrrrr
�files�packagesr�
__classcell__rr)r rr6srcs2eZdZdZdZdZeddfZ�fdd�Z�ZS)	�DebianNamed�/etc/bind/named.conf�bind9z/etc/bind/named.conf.optionsz/etc/bind/named.conf.localcstt|�j�|jd�dS)Nz
/etc/bind/)rr$rr)r)r rrrPs
zDebianNamed.setup)r%)r&)	rrrr!r"rr
rr#rr)r rr$Gsr$N)Zsos.report.pluginsrrrrZos.pathrrrrr$rrrr�<module>	s)