Bug 744405
Summary: | PHP update changes permissions of /var/lib/php/session/ | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Philipp Gampe <bugzilla.redhat.com> |
Component: | php | Assignee: | Joe Orton <jorton> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 15 | CC: | fedora, james, jorton, rpm |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-08-07 16:38:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Philipp Gampe
2011-10-08 12:09:29 UTC
This is related with two other bug reports: https://bugzilla.redhat.com/show_bug.cgi?id=698086 https://bugzilla.redhat.com/show_bug.cgi?id=680056 There is a "universal" solution which I think could be easily implemented on the PHP package. Looking at the spec file, there are two lines which relate to this: install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session %attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session Would there be any problem with changing the first line to: install -o root -g apache -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session The second line can then be removed. With this change, when PHP is set up and configured the session dir owner/group can be changed to whatever the admin wants, and subsequent updates to the PHP package will not override the change. I am not into RPM building, but that sounds good. I also like the idea of #680056 (using a generic webserver group), but once again, please do not touch permissions on upgrades if you do not have to. I do not expect an upgrade which should just change a few binary files to mess with my configuration (permissions, etc.). @Joe Orton : Can you judge whether my suggestion above a useful solution to these issues? 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 Can this bug be updated to be against fedora rawhide instead? There is no sense in having to recreate it. Each process owner need to own its session directory. Apache one is /var/lib/php/session. Starting with php 5.4.7-2, this value is set from /etc/httpd/conf.d/php.conf /etc/php-fpm.d/*conf |