o
G%@iÿ ã @ sb d dl mZmZ d dlmZmZmZmZ G dd„ deƒZG dd„ deeƒZ G dd„ deeeƒZ
d S )
é )ÚjoinÚnormpath)ÚPluginÚRedHatPluginÚDebianPluginÚUbuntuPluginc @ s8 e Zd ZdZdZdZdZeZdd„ Zdd„ Z d d
„ Z
dS )ÚNamedzBIND named serverÚnamed)ÚsystemÚservicesÚnetworkú/etc/named.confc C sb | ddg¡ | jD ]$}| |¡r.| || |¡g¡ | t| |¡dƒt| |¡dƒg¡ q
d S )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Úsetup s þ
þþ€úzNamed.setupc C s | d|¡}|rt|d ƒS dS )z3 grab directory path from named{conf,boot}
zdirectory\s+\"(.*)\"r Ú )Údo_regex_find_allr )r Úconfig_fileÚdirectory_listr r r r &