Bug 651646 - SELinux is preventing /usr/bin/python "search" access on /var/lib/yum.
Summary: SELinux is preventing /usr/bin/python "search" access on /var/lib/yum.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 13
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:1b84ea77c0a...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-10 00:26 UTC by maurizio
Modified: 2010-11-21 21:59 UTC (History)
2 users (show)

Fixed In Version: selinux-policy-3.9.7-12.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-21 21:59:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description maurizio 2010-11-10 00:26:50 UTC
Summary:

SELinux is preventing /usr/bin/python "search" access on /var/lib/yum.

Detailed Description:

SELinux denied access requested by system-config-f. It is not expected that this
access is required by system-config-f and this access may signal an intrusion
attempt. It is also possible that the specific version or configuration of the
application is causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://docs.fedoraproject.org/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:firewallgui_t:s0-s0:c0.c1023
Target Context                system_u:object_r:rpm_var_lib_t:s0
Target Objects                /var/lib/yum [ dir ]
Source                        system-config-f
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.6.4-25.fc13
Target RPM Packages           yum-3.2.28-5.fc13
Policy RPM                    selinux-policy-3.7.19-65.fc13
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed) 2.6.33.3-85.fc13.i686
                              #1 SMP Thu May 6 18:44:12 UTC 2010 i686 i686
Alert Count                   1
First Seen                    Tue 09 Nov 2010 05:24:26 PM MST
Last Seen                     Tue 09 Nov 2010 05:24:26 PM MST
Local ID                      fad48f04-50f3-4ce0-9c8c-fcd9ae670f7f
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1289348666.300:36): avc:  denied  { search } for  pid=4166 comm="system-config-f" name="yum" dev=dm-0 ino=204 scontext=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 tcontext=system_u:object_r:rpm_var_lib_t:s0 tclass=dir

node=(removed) type=SYSCALL msg=audit(1289348666.300:36): arch=40000003 syscall=195 success=no exit=-13 a0=9397c48 a1=bffef63c a2=546ff4 a3=9397c48 items=0 ppid=1 pid=4166 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="system-config-f" exe="/usr/bin/python" subj=system_u:system_r:firewallgui_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  catchall,system-config-f,firewallgui_t,rpm_var_lib_t,dir,search
audit2allow suggests:

#============= firewallgui_t ==============
allow firewallgui_t rpm_var_lib_t:dir search;

Comment 1 Miroslav Grepl 2010-11-10 12:33:54 UTC
I think it can be dontaudited.

maurizio,
does everything work as expect?

Comment 2 Daniel Walsh 2010-11-10 13:37:35 UTC
Well if the firewall gui is running yum it might need to be able to read this directory.

Comment 3 Daniel Walsh 2010-11-10 13:39:02 UTC
Never mind.  I thought is was running yum it is looking at the directory yum

Comment 4 Miroslav Grepl 2010-11-11 14:56:58 UTC
Fixed in selinux-policy-3.7.19-71.fc13

Comment 5 Fedora Update System 2010-11-19 13:21:16 UTC
selinux-policy-3.9.7-12.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 6 Fedora Update System 2010-11-19 22:39:31 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update selinux-policy'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-12.fc14

Comment 7 Fedora Update System 2010-11-21 21:57:50 UTC
selinux-policy-3.9.7-12.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


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