Bug 850670

Summary: SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /etc/nsswitch.conf.
Product: [Fedora] Fedora Reporter: Luya Tshimbalanga <luya>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cf6a6dc16c7e60cec7a77a751617ad254bba23844cb413a0198386517d01c9b7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 10:52:15 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 Flags
File: type
none
File: hashmarkername
none
File: description none

Description Luya Tshimbalanga 2012-08-22 06:41:35 UTC
Additional info:
libreport version: 2.0.12
kernel:         3.6.0-0.rc2.git0.1.fc18.x86_64

Comment 1 Luya Tshimbalanga 2012-08-22 06:41:37 UTC
Created attachment 606138 [details]
File: type

Comment 2 Luya Tshimbalanga 2012-08-22 06:41:38 UTC
Created attachment 606139 [details]
File: hashmarkername

Comment 3 Luya Tshimbalanga 2012-08-22 06:41:40 UTC
Created attachment 606140 [details]
File: description

Comment 4 Miroslav Grepl 2012-08-22 10:52:15 UTC
# restorecon -v /etc/nsswitch.conf

will fix it. But the question is how it got this mislabeling. 

What does

# rpm -qa --scripts |grep nsswitch

Comment 5 Luya Tshimbalanga 2012-08-22 17:32:22 UTC
Here is the result:

]$ rpm -qa --scripts | grep nsswitch
# sed-fu to add myhostname to the hosts line of /etc/nsswitch.conf
if [ -f /etc/nsswitch.conf ] ; then
                ' /etc/nsswitch.conf
# sed-fu to remove myhostname from the hosts line of /etc/nsswitch.conf
if [ "$1" -eq 0 -a -f /etc/nsswitch.conf ] ; then
                ' /etc/nsswitch.conf

Comment 6 Miroslav Grepl 2012-08-23 06:12:36 UTC
Ok, see if you get it again. Thank you.