# rpm -q rpm rpm-4.6.0-1.fc10.x86_64 If a %config(noreplace) file entry results in the new one saved as .rpmnew, I think it's reasonable to expect that modes and ownership from the new entry would be still applied to the old config file whose contents were left untouched. Example specfiles at http://scop.fedorapeople.org/bugs/noreplace-perms/ # rpm -i noreplace-perms-1.0-1.x86_64.rpm # echo foo >> /tmp/noreplace-perms # rpm -U noreplace-perms-1.1-1.x86_64.rpm warning: /tmp/noreplace-perms created as /tmp/noreplace-perms.rpmnew # ls -l /tmp/noreplace-perms* -rw-r--r-- 1 root root 8 2009-04-06 23:37 /tmp/noreplace-perms -rw-r----- 1 apache apache 4 2009-04-06 23:37 /tmp/noreplace-perms.rpmnew I would have hoped/expected that /tmp/noreplace-perms in addition to /tmp/noreplace-perms.rpmnew would have had 0640 apache:apache permissions after this operation. Not getting the permissions applied on upgrade scenarios like these might be kind of a security issue if the permissions were changed for a security related reason and this bug/missing feature is not taken care of manually chmod/chowning in package scriptlets.
And if the sysadmin has deliberately chosen different ownership/access you want rpm to 2nd guess what the sysadmin has chosen to do for %config(noreplace) files? That makes no sense to me, but have fun!
rpm already quite happily changes permissions of config files on upgrades when no .rpmnew needs to be generated.
Yes, on files that the sysadmin has not altered. Your comment is irrelevant to your original RFE.
(In reply to comment #3) > Yes, on files that the sysadmin has not altered. It does it on upgrades also for files which the sysadmin _has_ altered by changing the files' permissions. # rpm -i noreplace-perms-1.0-1.x86_64.rpm # ls -l /tmp/noreplace-perms -rw-r--r-- 1 root root 4 2009-04-10 00:33 /tmp/noreplace-perms # chown bin:bin /tmp/noreplace-perms ; chmod 400 /tmp/noreplace-perms # ls -l /tmp/noreplace-perms -r-------- 1 bin bin 4 2009-04-10 00:33 /tmp/noreplace-perms # rpm -U noreplace-perms-1.1-1.x86_64.rpm # ls -l /tmp/noreplace-perms -rw-r----- 1 apache apache 4 2009-04-10 00:35 /tmp/noreplace-perms > Your comment is irrelevant to your original RFE. I disagree. To summarize differently, this RFE is about consistent behavior wrt. what happens to permissions of actual/effective (not .rpm* backups) config files on package upgrades.
If file stat(2) changes are not detected (and .rpmnew suffix appended for %config(noreplace)), then the flaw is in rpm-4.6.0 changing %config handling or other bug, not otherwise. The behavior peculier to rpm-4.6.0, as will be the RFE here if actually implemented. Most certainly we disagree whether sysadmin changes to *.rpm files should be respected or whether *.rpm should blindly attempt to guess what to do. The disagreement is easily detected in comment #3 (now spelled out in detail). Have fun!
This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. 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 WONTFIX if it remains open with a Fedora 'version' of '10'. 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 prior to Fedora 10's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 10 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 please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. 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. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Applies to rpm-4.7.1-3.fc11.x86_64 too.
This message is a reminder that Fedora 11 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 11. 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 WONTFIX if it remains open with a Fedora 'version' of '11'. 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 prior to Fedora 11's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 11 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 please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. 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. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
(In reply to comment #7) > Applies to rpm-4.7.1-3.fc11.x86_64 too. Ditto rpm-4.8.0-14.fc13.x86_64.
This message is a reminder that Fedora 13 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 13. 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 WONTFIX if it remains open with a Fedora 'version' of '13'. 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 prior to Fedora 13's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 13 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 please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. 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. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
rpm-4.9.0-6.fc15.x86_64 is affected.
This message is a notice that Fedora 15 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 15. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At this time, all open bugs with a Fedora 'version' of '15' have been closed as WONTFIX. (Please note: Our normal process is to give advanced warning of this occurring, but we forgot to do that. A thousand apologies.) Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, feel free to reopen this bug and simply change the 'version' to a later Fedora version. Bug Reporter: Thank you for reporting this issue and we are sorry that we were unable to fix it before Fedora 15 reached 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 to click on "Clone This Bug" (top right of this page) and open it against that version of Fedora. 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. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping