Bug 118198
Summary: | unclean httpd environment with apachectl | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Guillaume Perréal <perreal> | ||||
Component: | httpd | Assignee: | Joe Orton <jorton> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 1 | CC: | mattdm | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | impact=low | ||||||
Fixed In Version: | fc6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-10-28 14:58:59 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: | |||||||
Attachments: |
|
Description
Guillaume Perréal
2004-03-13 10:18:08 UTC
Created attachment 98510 [details]
Modified apachectl.in patch
This patch defines a ENV variable looking like this:
ENV="/bin/env - PATH=/usr/bin:/bin:/usr/local/bin $HTTPD_ENV"
Which is then used to launch httpd:
$ENV $HTTPD <args...>
Thanks, yes, this happens if you start httpd from /etc/init.d/httpd too; as covered in bug 97604, whereas if you use "service httpd start" you get a clean environment. Your change looks good for FC2. 1) After reading bug 97604 descriptions, I shall add that $ENV definition may be changed to : ENV="/bin/env -i LANG=$LANG PATH=/usr/bin:/bin:/usr/local/bin $HTTPD_ENV" (using "-i" instead of "-" and adding LANG) Fedora Core 1 is maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC5 updates or in the FC6 test release, reopen and change the version to match. Thanks! NOTE: Fedora Core 1 is reaching the final end of support even by the Legacy project. After Fedora Core 6 Test 2 is released (currently scheduled for July 26th), there will be no more security updates for FC1. Please use these next two weeks to upgrade any remaining FC1 systems to a current release. This seems to be fixed in FC6. (Well, it does pick up the entire PATH from root, but it doesn't grab other variables.) I'm not sure when it was fixed, but this bug was never closed. Note that FC1 and FC2 are no longer supported even by Fedora Legacy. If this still occurs on FC3 or FC4, please assign to that version and Fedora Legacy. If it still occurs on FC5, please reopen and assign to the correct version. Closing bug. |