Bug 1005035 - SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the directory 716.
Summary: SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the direct...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 19
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a886ac7cf7b17dccfecd12bee87...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-06 05:19 UTC by Aaron
Modified: 2013-09-12 01:53 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.12.1-74.2.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-12 01:53:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Aaron 2013-09-06 05:19:06 UTC
Description of problem:
I'm so new to linux 
SELinux is preventing /usr/bin/python2.7 from 'search' accesses on the directory 716.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that python2.7 should be allowed search access on the 716 directory by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# grep firewalld /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:firewalld_t:s0
Target Context                system_u:system_r:NetworkManager_t:s0
Target Objects                716 [ dir ]
Source                        firewalld
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7.5-1.fc19.x86_64
                              python-2.7.5-4.fc19.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-54.fc19.noarch selinux-
                              policy-3.12.1-73.fc19.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.9.5-301.fc19.x86_64 #1 SMP Tue
                              Jun 11 19:39:38 UTC 2013 x86_64 x86_64
Alert Count                   2
First Seen                    2013-09-05 20:53:22 PDT
Last Seen                     2013-09-05 20:58:43 PDT
Local ID                      6087627f-1fa6-4ae6-9f42-1966b6603f12

Raw Audit Messages
type=AVC msg=audit(1378439923.325:1534): avc:  denied  { search } for  pid=643 comm="firewalld" name="716" dev="proc" ino=20234 scontext=system_u:system_r:firewalld_t:s0 tcontext=system_u:system_r:NetworkManager_t:s0 tclass=dir


type=SYSCALL msg=audit(1378439923.325:1534): arch=x86_64 syscall=open success=no exit=EACCES a0=2b50530 a1=0 a2=1b6 a3=0 items=0 ppid=1 pid=643 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=firewalld exe=/usr/bin/python2.7 subj=system_u:system_r:firewalld_t:s0 key=(null)

Hash: firewalld,firewalld_t,NetworkManager_t,dir,search

Additional info:
reporter:       libreport-2.1.6
hashmarkername: setroubleshoot
kernel:         3.9.5-301.fc19.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-09-06 07:57:57 UTC
commit 623647ec47b7160e47686401ae0679c243c01ac6
Author: Miroslav Grepl <mgrepl>
Date:   Fri Sep 6 09:57:35 2013 +0200

    Allow firewalld to read NM state

Comment 2 Fedora Update System 2013-09-09 07:54:28 UTC
selinux-policy-3.12.1-74.2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-74.2.fc19

Comment 3 Fedora Update System 2013-09-09 23:57:32 UTC
Package selinux-policy-3.12.1-74.2.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-74.2.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-16231/selinux-policy-3.12.1-74.2.fc19
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2013-09-12 01:53:47 UTC
selinux-policy-3.12.1-74.2.fc19 has been pushed to the Fedora 19 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.