Bug 850670 - SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /etc/nsswitch.conf.
SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /et...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
rawhide
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
abrt_hash:cf6a6dc16c7e60cec7a77a75161...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-22 02:41 EDT by Luya Tshimbalanga
Modified: 2012-08-23 02:12 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-08-22 06:52:15 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)
File: type (9 bytes, text/plain)
2012-08-22 02:41 EDT, Luya Tshimbalanga
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-08-22 02:41 EDT, Luya Tshimbalanga
no flags Details
File: description (3.23 KB, text/plain)
2012-08-22 02:41 EDT, Luya Tshimbalanga
no flags Details

  None (edit)
Description Luya Tshimbalanga 2012-08-22 02:41:35 EDT
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 02:41:37 EDT
Created attachment 606138 [details]
File: type
Comment 2 Luya Tshimbalanga 2012-08-22 02:41:38 EDT
Created attachment 606139 [details]
File: hashmarkername
Comment 3 Luya Tshimbalanga 2012-08-22 02:41:40 EDT
Created attachment 606140 [details]
File: description
Comment 4 Miroslav Grepl 2012-08-22 06:52:15 EDT
# 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 13:32:22 EDT
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 02:12:36 EDT
Ok, see if you get it again. Thank you.

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