+
    i	  c                   sv    ^ RI HtHt ^ RIHtHtHtHt  ! R R]4      t ! R R]]4      t	 ! R R]]]4      t
R	# )
i    )joinnormpath)PluginRedHatPluginDebianPluginUbuntuPluginc                   sF   a  ] tR t^t o RtRtR	tRt]tR t	R t
R tRtV tR# )
NamedzBIND named serverZnamed/etc/named.confc           	     sR   V P                  R R.4       V P                   F  pV P                  V4      '       g   K  V P                  VV P                  V4      .4       V P	                  \        V P                  V4      R4      \        V P                  V4      R4      .4       K  	  R# )z/etc/default/bindz/var/log/named*.logz
chroot/devzchroot/procN)add_copy_specconfig_filesZpath_existsget_dns_diradd_forbidden_pathr    )selfZcfgs   & =/usr/lib/python3.14/site-packages/sos/report/plugins/named.pysetupZNamed.setup   s    !
 	 $$C$$""$$S)$  ''))#.=))#.>)  %    c                s^    V P                  RV4      pV'       d   \        V^ ,          4      # R# )z2grab directory path from named{conf,boot}
        zdirectory\s+\"(.*)\"Z )Zdo_regex_find_allr   )r   Zconfig_fileZdirectory_lists   && r   r
   ZNamed.get_dns_dir&   s0     //0G0;=N1-..r   c                sF    R pRpV P                  V P                  W4       R# )z(\s*arg \"password )[^\"]*z\1******N)Zdo_file_sub
named_conf)r   ZmatchZsubsts   &  r   postprocZNamed.postproc0   s     -%7r    N)ZsystemZservicesZnetwork)__name__
__module____qualname____firstlineno__Z
short_descZplugin_nameZprofilesr   r	   r   r
   r   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s2     $JK0H"JL 8 8r   r   c                   sF   a a ] tR t^6t oRtRt]R3tRtV 3R ltRt	Vt
V ;t# )RedHatNamedr   /etc/sysconfig/namedc                s   < \         SV `  4        V P                  R 4       V P                  R4       V P                  R4       V P	                  R4       R# )z/etc/named/r   zklist -ket /etc/named.keytabz/etc/named.keytabN)superr   r   Zadd_cmd_outputr   r   	__class__   &r   r   ZRedHatNamed.setup>   sG    =)12:; 34r   r   )r   z/etc/named.boot)Zbind)r   r   r   r   r   r	   filespackagesr   r   r   __classcell__r   r      @@r   r   r   6   s+     "J'L/0EH5 5r   r   c                   sH   a a ] tR t^Ft oRtRtRt]RR3tV 3R ltRt	Vt
V ;t# )DebianNamed/etc/bind/named.confz/etc/bind/named.conf.optionsz/etc/bind/named.conf.localc                sF   < \         SV `  4        V P                  R 4       R# )z
/etc/bind/N)r   r   r   r   r   r   r   ZDebianNamed.setupO   s    <(r   r   )r&   )Zbind9)r   r   r   r   r    r!   r   r	   r   r   r   r"   r#   r$   r   r%   r%   F   s.     %EH'J202L) )r   r%   N)Zos.pathr    r   Zsos.report.pluginsr   r   r   r   r   r   r%   r   r   r   <module>r'      s;    # O O&8F &8R5% 5 )%| )r   