Bug 850670 - SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /etc/nsswitch.conf.
Summary: SELinux is preventing /usr/bin/python2.7 from 'read' accesses on the file /et...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cf6a6dc16c7e60cec7a77a75161...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-08-22 06:41 UTC by Luya Tshimbalanga
Modified: 2012-08-23 06:12 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 10:52:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-08-22 06:41 UTC, Luya Tshimbalanga
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-08-22 06:41 UTC, Luya Tshimbalanga
no flags Details
File: description (3.23 KB, text/plain)
2012-08-22 06:41 UTC, Luya Tshimbalanga
no flags Details

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.


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