Bug 1422680
| Summary: | wrong permissions on /var/named directory | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Thomas Köller <thomas> |
| Component: | bind | Assignee: | Petr Menšík <pemensik> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 27 | CC: | bojan, e.lania, martin, mruprich, msehnout, pemensik, thozza, vonsch, zdohnal |
| Target Milestone: | --- | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | bind-9.11.4-1.fc27 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2018-07-31 17:10:15 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1574003 | ||
| Bug Blocks: | 1487823 | ||
|
Description
Thomas Köller
2017-02-15 21:27:56 UTC
Hi, thanks for your report. Can you share more about your configuration, please? You can use named-checkconf -p to include all configuration. Note that /var/named is by not writeable by named by purpose. It is possible to move updated zones to /var/named/slaves or /var/named/dynamic, which are already configured to be modified by named? First off, it seems that my observation (/var/named access permissions being reset to 750 after a system restart), was somehow wrong. I restarted my system several times since, and did not observe this again, so the issue is probably void. As to whether named should be allowed to write to /var/named, however, I still think that it should be. If it were not, it would be unable to create or delete .jnl files, for example. Also, the Bind9 ARM states this (in paragraph 6.2, p. 126): 'For this reason among others, the working directory should be always be writable by named'. Relocating zone files to another directory writable by named, say /var/named/dynamic, may be possible. However, such a configuration would not be any more secure than allowing write access to /var/named, or would it? Unless you use also sticky bit (chmod +t /var/named), named will be able to delete any file in that directory. We want to prevent that. That is a reason why you have to manually enable it by sebool. Unless zone is managed by bind, it should not be able to modify it in any way. managed-keys.bind are by default in /var/named/dynamic by default, because managed-keys-directory option. There exists some cases with rndc addzone and rndc delzone that will not work unless home is writeable, but other cases should not require /var/named to be writeable by named. I was not able to reproduce your case. It did reset mode of /var/named after installation of bind-chroot however, I will have find a way to reproduce that. Maybe it will reset it only if setsebool -P named_write_master_zones false is used. This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. Reopening, as this is still accurate and requested by upstream. This bug is currently reported against a Fedora version which is already unsuported. I am changing the version to '27', the latest supported release. Please check whether this bug is still an issue on the '27' release. If you find this bug not being applicable on this release, please close it. bind-9.11.3-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-0712169848 bind-9.11.3-6.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-0712169848 bind-dyndb-ldap-11.1-12.fc27 dnsperf-2.1.0.0-17.fc27 bind-9.11.4-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c0f12f789e bind-9.11.4-1.fc27, bind-dyndb-ldap-11.1-12.fc27, dnsperf-2.1.0.0-17.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c0f12f789e bind-9.11.4-1.fc27, bind-dyndb-ldap-11.1-12.fc27, dnsperf-2.1.0.0-17.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report. |