Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 840529

Summary: incorrect SELinux context on /etc/nsswitch.conf
Product: Red Hat Enterprise Linux 5 Reporter: Jan Hutař <jhutar>
Component: sudoAssignee: Daniel Kopeček <dkopecek>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.8CC: dkopecek, mfranc, plambri, r.stonham
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-17 15:11:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Hutař 2012-07-16 14:33:57 UTC
Description of problem:
There is an incorrect SELinux context on file /etc/nsswitch.conf which, strangely, prevents PostgreSQL database to start listening on localhost:5432.


Version-Release number of selected component (if applicable):
RHEL-5.8 updated to latest
glibc-2.5-81.el5_8.4


How reproducible:
4 of 4 cases


Steps to Reproduce:
1. provision RHEL5.8 and apply available updates
2. # ls -Z /etc/nsswitch.conf


Actual results:
root:object_r:rpm_script_tmp_t


Expected results:
system_u:object_r:etc_t

Comment 3 Jeff Law 2012-07-16 15:30:49 UTC
Please check the selinux context on /etc.  This kind of problem showed up somewhere else recently and an incorrect context on /etc was the root cause.

Comment 9 Daniel Kopeček 2012-07-17 15:11:11 UTC

*** This bug has been marked as a duplicate of bug 818585 ***