Running RHEL 6.1 named. Have it running in primary mode on one server, and slave mode on the other. The slave version gets the zones from the primary version, but it is not capable of creating the slave files. So it works, but I'm aware that if the secondary ever rebooted while the primary was down, neither would work.
I believe I had the persmissions correct on the directories, but I even went beyond that and changed /var, /var/named and everything under /var/named to 777 permissions. In /etc/sysconfig/named I have set --
ENABLE_ZONE_WRITE=yes
named_write_master_zones=yes
Still get the following error --
Apr 8 12:18:14 postgres-02 named[6248]: dumping master file: /var/named/slaves/tmp-6QzqbnrkFm: open: permission denied
Apr 8 12:18:14 postgres-02 kernel: type=1400 audit(1365441494.693:264460): avc: denied { write } for pid=6251 comm="named" name="slaves" dev=dm-0 ino=131232 scontext=system_u:system_r:named_t:s0 tcontext=system_ubject_r:named_zone_t:s0 tclass=dir
Apr 8 12:18:14 postgres-02 named[6248]: dumping master file: /var/named/slaves/tmp-R9d4zgBXzF: open: permission denied
Apr 8 12:18:14 postgres-02 kernel: type=1400 audit(1365441494.703:264461): avc: denied { write } for pid=6251 comm="named" name="slaves" dev=dm-0 ino=131232 scontext=system_u:system_r:named_t:s0 tcontext=system_ubject_r:named_zone_t:s0 tclass=dir
What am I overlooking?
I believe I had the persmissions correct on the directories, but I even went beyond that and changed /var, /var/named and everything under /var/named to 777 permissions. In /etc/sysconfig/named I have set --
ENABLE_ZONE_WRITE=yes
named_write_master_zones=yes
Still get the following error --
Apr 8 12:18:14 postgres-02 named[6248]: dumping master file: /var/named/slaves/tmp-6QzqbnrkFm: open: permission denied
Apr 8 12:18:14 postgres-02 kernel: type=1400 audit(1365441494.693:264460): avc: denied { write } for pid=6251 comm="named" name="slaves" dev=dm-0 ino=131232 scontext=system_u:system_r:named_t:s0 tcontext=system_ubject_r:named_zone_t:s0 tclass=dir
Apr 8 12:18:14 postgres-02 named[6248]: dumping master file: /var/named/slaves/tmp-R9d4zgBXzF: open: permission denied
Apr 8 12:18:14 postgres-02 kernel: type=1400 audit(1365441494.703:264461): avc: denied { write } for pid=6251 comm="named" name="slaves" dev=dm-0 ino=131232 scontext=system_u:system_r:named_t:s0 tcontext=system_ubject_r:named_zone_t:s0 tclass=dir
What am I overlooking?