Bug 2142368
| Summary: | unbound-libs 1.16.3-3 fails to install root.key with correct permissions | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Frederik Boster <frederik> |
| Component: | unbound | Assignee: | Petr Menšík <pemensik> |
| Status: | ASSIGNED --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 37 | CC: | aegorenkov.91, akhaitovich, alex.ploumistos, paul.wouters, pemensik, pj.pandit |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 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: | |||
| Bug Blocks: | 2149036 | ||
|
Description
Frederik Boster
2022-11-13 13:19:31 UTC
Yes, I have noticed this when investigating bug #2149036. It will be fixed soon, I am testing the fix on my copr repository: https://copr.fedorainfracloud.org/coprs/pemensik/unbound/ I was too late to comment in bodhi, but there's still an issue when upgrading from unbound-libs-1.17.0-1.fc37 to unbound-libs-1.17.1-1.fc37: […] Running scriptlet: unbound-libs-1.17.1-1.fc37.x86_64 13/72 Upgrading : unbound-libs-1.17.1-1.fc37.x86_64 13/72 warning: /var/lib/unbound/root.key saved as /var/lib/unbound/root.key.rpmsave […] ls -alh /var/lib/unbound/ total 12K drwxr-xr-x. 2 unbound unbound 4.0K Jan 19 21:23 . drwxr-xr-x. 54 root root 4.0K Dec 25 13:25 .. lrwxrwxrwx. 1 root root 36 Jan 16 17:43 root.key -> ../../../etc/unbound/dnssec-root.key -rw-r--r--. 1 unbound unbound 759 Jan 19 00:00 root.key.rpmsave What is the proper resolution here? @alex.ploumistos that is unrelated to this issue. "What are rpmnew & rpmsave files?": https://access.redhat.com/solutions/60263 I thought that root.key should belong to unbound and not root, was that not the source of your issue? Oh, there seems to be unseen issue when upgrading. Even after I restart unbound-anchor.service and create therefore modified root.key, after upgrade it resets back to symlink pointing to /etc/unbound/dnssec-root.key. That is not what it were intended and has to be fixed. What belongs to root is just initial symlink pointing to /etc/unbound/dnssec-root.key. It should be removed when unbound-anchor.service runs and replaced by unbound user owned file, which is managed by the unbound-anchor.service (or unbound.service). /etc/unbound/dnssec-root.key is owned by root, because any unbound service should not modify it. It does not even have permission to do so, which is intentional. But comment #5 needs to be fixed, updates should keep modified file. |