Bug 718053 - SELinux is preventing /usr/bin/python from 'create' accesses on the unix_dgram_socket Unknown.
Summary: SELinux is preventing /usr/bin/python from 'create' accesses on the unix_dgra...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 14
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:8bd37cb6df2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-30 19:44 UTC by Eric Blake
Modified: 2011-10-27 13:33 UTC (History)
8 users (show)

Fixed In Version: selinux-policy-3.9.7-44.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-12 11:01:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eric Blake 2011-06-30 19:44:53 UTC
SELinux is preventing /usr/bin/python from 'create' accesses on the unix_dgram_socket Unknown.

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

If you believe that python should be allowed create access on the Unknown unix_dgram_socket 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 xm /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:virsh_t:s0
Target Context                system_u:system_r:virsh_t:s0
Target Objects                Unknown [ unix_dgram_socket ]
Source                        xm
Source Path                   /usr/bin/python
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           python-2.7-8.fc14.1
Target RPM Packages           
Policy RPM                    selinux-policy-3.9.7-40.fc14
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.35.13-92.fc14.x86_64 #1 SMP Sat
                              May 21 17:26:25 UTC 2011 x86_64 x86_64
Alert Count                   7
First Seen                    Fri 10 Jun 2011 10:49:37 PM MDT
Last Seen                     Thu 30 Jun 2011 01:39:56 PM MDT
Local ID                      59a3c28a-6153-4681-b43b-7297b9429389

Raw Audit Messages
type=AVC msg=audit(1309462796.754:16): avc:  denied  { create } for  pid=2203 comm="xm" scontext=system_u:system_r:virsh_t:s0 tcontext=system_u:system_r:virsh_t:s0 tclass=unix_dgram_socket


type=SYSCALL msg=audit(1309462796.754:16): arch=x86_64 syscall=socket success=no exit=EACCES a0=1 a1=80002 a2=0 a3=65637865206e6f68 items=0 ppid=2199 pid=2203 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=xm exe=/usr/bin/python subj=system_u:system_r:virsh_t:s0 key=(null)

Hash: xm,virsh_t,virsh_t,unix_dgram_socket,create

audit2allow

#============= virsh_t ==============
allow virsh_t self:unix_dgram_socket create;

audit2allow -R

#============= virsh_t ==============
allow virsh_t self:unix_dgram_socket create;

Comment 1 Miroslav Grepl 2011-07-01 08:25:54 UTC
Fixed in selinux-policy-3.9.7-44.fc14

Comment 2 Fedora Update System 2011-08-04 13:58:30 UTC
selinux-policy-3.9.7-44.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-44.fc14

Comment 3 Fedora Update System 2011-08-05 03:53:39 UTC
Package selinux-policy-3.9.7-44.fc14:
* should fix your issue,
* was pushed to the Fedora 14 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.9.7-44.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/selinux-policy-3.9.7-44.fc14
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2011-08-12 11:00:37 UTC
selinux-policy-3.9.7-44.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Fedora Update System 2011-08-12 18:25:04 UTC
selinux-policy-3.9.7-44.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.