Bug 453697 - ability to suexec not detected correctly causing mod_fcgid to fail
ability to suexec not detected correctly causing mod_fcgid to fail
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: httpd (Show other bugs)
13
All Linux
low Severity low
: ---
: ---
Assigned To: Joe Orton
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-01 22:52 EDT by Jim Radford
Modified: 2010-08-04 10:05 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-08-04 10:05:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
set suexec_enabled correctly allowing non-root use of mod_fcgid (362 bytes, patch)
2008-07-01 22:52 EDT, Jim Radford
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Apache Bugzilla 42175 None None None Never

  None (edit)
Description Jim Radford 2008-07-01 22:52:08 EDT
When httpd is run as a non-root user, suexec_enabled is incorrectly set because
apache doesn't notice that it cannot run the suexec binary.  This leads to
failures when running mod_fcgid which requires suexec_enabled to be set correctly.

The attached patch will only enable suexec if it can be run.
Comment 1 Jim Radford 2008-07-01 22:52:08 EDT
Created attachment 310752 [details]
set suexec_enabled correctly allowing non-root use of mod_fcgid
Comment 2 Joe Orton 2008-07-14 10:10:03 EDT
Thanks for the patch.  1.3 had a similar check IIRC but it was disabled since
there is no appropriate function in APR; I'll try to get this upstream too.
Comment 3 Jim Radford 2008-07-14 13:23:42 EDT
Thanks, I'd appreciate the help as I met with a solid Warnocking when I tried to
submit it myself.

  https://issues.apache.org/bugzilla/show_bug.cgi?id=42175
Comment 4 Bug Zapper 2008-11-25 21:29:43 EST
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Comment 5 Bug Zapper 2009-11-18 07:35:34 EST
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
Comment 6 Jim Radford 2009-11-18 13:11:59 EST
This bug just got some notice upstream for the first time.

  https://issues.apache.org/bugzilla/show_bug.cgi?id=42175
Comment 7 Bug Zapper 2010-03-15 08:01:55 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 13 development cycle.
Changing version to '13'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Comment 8 Joe Orton 2010-07-27 11:53:41 EDT
The patch for this has been in Fedora for a while, are you seeing this problem with Fedora 13?
Comment 9 Jim Radford 2010-07-27 13:06:27 EDT
This patch is still needed.  Without it mod_fcgid cannot be used when apache is run by a non-root user.
Comment 10 Joe Orton 2010-07-28 04:17:53 EDT
In case that was not clear: we are already applying this patch in the Fedora httpd package, and have been doing so for several years.

My question again: can you confirm whether you are seeing the problem described with mod_fcgid with the httpd package?
Comment 11 Jim Radford 2010-07-29 01:03:58 EDT
I commented out the patch from the latest Fedora 13 SRPM and rebuilt it.  I got these errors (over and over), so the patch is definitely still needed.

[Wed Jul 28 21:57:53 2010] [notice] SIGHUP received.  Attempting to restart
[Wed Jul 28 21:57:53 2010] [emerg] mod_fcgid: current user is not root while suexec is enabled, exiting now
[Wed Jul 28 21:57:53 2010] [notice] Apache/2.2.15 (Unix) mod_fcgid/2.3.5 configured -- resuming normal operations
[Wed Jul 28 21:57:53 2010] [error] mod_fcgid: fcgid process manager died, restarting the server
Comment 12 Joe Orton 2010-07-29 04:49:17 EDT
Jim, you are answering the wrong question.  I am asking: "does the current Fedora package work?".  You are answering the question "will the current Fedora package work if the patch is removed".  So, again: can you confirm that the current Fedora package works as desired?
Comment 13 Jim Radford 2010-07-29 13:00:56 EDT
The current package works.
Comment 14 Joe Orton 2010-08-04 10:05:27 EDT
Thanks a lot!

Note You need to log in before you can comment on or make changes to this bug.