Bug 128942 - Broken files in the named chroot environment
Summary: Broken files in the named chroot environment
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: caching-nameserver
Version: 2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jason Vas Dias
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-01 16:20 UTC by Angelo
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version: bind-9.2.4rc6-3
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-08-02 20:14:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:568 0 normal SHIPPED_LIVE Updated caching-nameserver package 2004-12-21 05:00:00 UTC

Description Angelo 2004-08-01 16:20:37 UTC
Description of problem:
in /var/named/chroot/etc/, named.conf and rndc.key are not pointing to
/etc/named.conf and /etc/rndc.key


Version-Release number of selected component (if applicable):
7.2-12

How reproducible:
Ever

Steps to Reproduce:
1. ls -l /var/named/chroot/etc/
  
Actual results:
Blank files

Expected results:
Hard links to /etc/named.conf and /etc/rndc.key

Comment 1 Angelo 2004-08-02 12:37:17 UTC
I forgot to say that if the /etc/named.conf and /etc/rndc.key as well
as the /var/named/ zone files aren't the same files on the chroot
environment, named can't be stopped and restarted because rndc isn't
working.

It can't even re-read the config files, if you want it do so without
stopping the service.

Another solution can be to put those files in the chroot environment
and then symlink those in /etc and /var/named, like this:

/etc/rndc.key -> /var/named/chroot/etc/rndc.key
/etc/named.conf -> /var/named/chroot/etc/named.conf
etc. etc.

Comment 2 Jason Vas Dias 2004-08-02 20:14:27 UTC
This was fixed in bind-9.2.4rc6-3 :
the /var/named/chroot/etc/{named.conf,rndc.key} 
files were getting created as blank files;
they are now always copied from /etc .
Perhaps they should be hardlinks; but some people
might want different configs for a chroot environment
than for the non-chroot environment.


Comment 3 John Flanagan 2004-12-21 19:52:10 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-568.html



Note You need to log in before you can comment on or make changes to this bug.