Bug 795914 - mod_nss doesn't run unless apache is configured to run under Group:apache
Summary: mod_nss doesn't run unless apache is configured to run under Group:apache
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: mod_nss
Version: 5.9
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Matthew Harmsen
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-21 19:39 UTC by Soichi Hayashi
Modified: 2012-03-21 21:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-21 21:09:17 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Soichi Hayashi 2012-02-21 19:39:00 UTC
mod_nss RPM installs following directory 

2012-02-21 19:36:36 UTC [hayashis@soichi2:/etc/httpd/alias]$ ls -la
total 112
drwxr-xr-x 2 root root    4096 Feb 21 19:28 .
drwxr-xr-x 5 root root    4096 Feb 21 19:18 ..
-rw-r----- 1 root apache 65536 Feb 17 20:55 cert8.db
-rw------- 1 root root    4395 Feb 17 20:55 install.log
-rw-r----- 1 root apache 16384 Feb 17 20:55 key3.db
lrwxrwxrwx 1 root root      33 Feb 17 20:55 libnssckbi.so -> ../../..//usr/lib64/libnssckbi.so
-rw-r----- 1 root apache 16384 Feb 17 20:55 secmod.db

The fact that only group:apache can access the db means that mod_nss will not run if apache is configured to run under non-apache group.

The apache error log is overflowing with following message.

[Tue Feb 21 19:30:45 2012] [notice] child pid 9304 exit signal Segmentation fault (11)
[Tue Feb 21 19:30:45 2012] [notice] child pid 9306 exit signal Segmentation fault (11)
[Tue Feb 21 19:30:45 2012] [notice] child pid 9307 exit signal Segmentation fault (11)
[Tue Feb 21 19:30:45 2012] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Tue Feb 21 19:30:45 2012] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Tue Feb 21 19:30:45 2012] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Tue Feb 21 19:30:45 2012] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Tue Feb 21 19:30:45 2012] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Tue Feb 21 19:30:45 2012] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED
[Tue Feb 21 19:30:45 2012] [error] NSS_Initialize failed. Certificate database: /etc/httpd/alias.
[Tue Feb 21 19:30:45 2012] [error] SSL Library Error: -8038 SEC_ERROR_NOT_INITIALIZED


Not only mod_nss will not run, but it actually completely disables mod_ssl. I had to uninstall mod_nss in our system to get our system working again.

Comment 1 Matthew Harmsen 2012-03-21 21:09:17 UTC
For the purposes of RHEL 5, we would like to suggest the following work-around:

    * cd /etc/httpd/alias
    * chgrp <non_apache_group> cert8.db key3.db secmod.db


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