+
    G%@i	                     v    ^ 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	# )
    )joinnormpath)PluginRedHatPluginDebianPluginUbuntuPluginc                   F   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 servernamed/etc/named.confc           	     R   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_filespath_existsget_dns_diradd_forbidden_pathr   )selfcfgs   & :/usr/lib/python3/dist-packages/sos/report/plugins/named.pysetupNamed.setup   s    !
 	 $$C$$""$$S)$  ''))#.=))#.>)  %    c                ^    V P                  RV4      pV'       d   \        V^ ,          4      # R# )z2grab directory path from named{conf,boot}
        zdirectory\s+\"(.*)\" )do_regex_find_allr   )r   config_filedirectory_lists   && r   r   Named.get_dns_dir&   s0     //0G0;=N1-..r   c                F    R pRpV P                  V P                  W4       R# )z(\s*arg \"password )[^\"]*z\1******N)do_file_sub
named_conf)r   matchsubsts   &  r   postprocNamed.postproc0   s     -%7r    N)systemservicesnetwork)__name__
__module____qualname____firstlineno__
short_descplugin_nameprofilesr!   r   r   r   r$   __static_attributes____classdictcell__)__classdict__s   @r   r
   r
      s2     $JK0H"JL 8 8r   r
   c                   F   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V `  4        V P                  R 4       V P                  R4       V P                  R4       V P	                  R4       R# )z/etc/named/r6   zklist -ket /etc/named.keytabz/etc/named.keytabN)superr   r   add_cmd_outputr   r   	__class__s   &r   r   RedHatNamed.setup>   sG    =)12:; 34r   r&   )r   z/etc/named.boot)bind)r*   r+   r,   r-   r!   r   filespackagesr   r1   r2   __classcell__r;   r3   s   @@r   r5   r5   6   s+     "J'L/0EH5 5r   r5   c                   H   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                F   < \         SV `  4        V P                  R 4       R# )z
/etc/bind/N)r8   r   r   r:   s   &r   r   DebianNamed.setupO   s    <(r   r&   )rD   )bind9)r*   r+   r,   r-   r>   r?   r!   r   r   r1   r2   r@   rA   s   @@r   rC   rC   F   s.     %EH'J202L) )r   rC   N)os.pathr   r   sos.report.pluginsr   r   r   r   r
   r5   rC   r&   r   r   <module>rJ      s;    # O O&8F &8R5% 5 )%| )r   