Bug 892307 - SELinux is preventing /usr/bin/qemu-system-i386 from 'create' accesses on the netlink_route_socket .
Summary: SELinux is preventing /usr/bin/qemu-system-i386 from 'create' accesses on the...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:09e8bf611f94b78708405384dd7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-06 14:44 UTC by frywalker
Modified: 2013-01-23 01:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-01-23 01:55:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description frywalker 2013-01-06 14:44:55 UTC
Description of problem:
juste lauching gnome boxes
SELinux is preventing /usr/bin/qemu-system-i386 from 'create' accesses on the netlink_route_socket .

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

If you believe that qemu-system-i386 should be allowed create access on the  netlink_route_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 qemu-system-i38 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                unconfined_u:system_r:svirt_tcg_t:s0:c170,c434
Target Context                unconfined_u:system_r:svirt_tcg_t:s0:c170,c434
Target Objects                 [ netlink_route_socket ]
Source                        qemu-system-i38
Source Path                   /usr/bin/qemu-system-i386
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           qemu-system-x86-1.2.2-1.fc18.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.11.1-69.fc18.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.6.6-3.fc18.x86_64 #1 SMP Mon Nov
                              5 16:26:34 UTC 2012 x86_64 x86_64
Alert Count                   1
First Seen                    2013-01-06 15:42:16 CET
Last Seen                     2013-01-06 15:42:16 CET
Local ID                      43904de6-fc9e-43dc-aab6-0d5643a7bd30

Raw Audit Messages
type=AVC msg=audit(1357483336.280:756): avc:  denied  { create } for  pid=23101 comm="qemu-system-i38" scontext=unconfined_u:system_r:svirt_tcg_t:s0:c170,c434 tcontext=unconfined_u:system_r:svirt_tcg_t:s0:c170,c434 tclass=netlink_route_socket


type=SYSCALL msg=audit(1357483336.280:756): arch=x86_64 syscall=socket success=no exit=EACCES a0=10 a1=3 a2=0 a3=7fff1651f640 items=0 ppid=1 pid=23101 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=2 comm=qemu-system-i38 exe=/usr/bin/qemu-system-i386 subj=unconfined_u:system_r:svirt_tcg_t:s0:c170,c434 key=(null)

Hash: qemu-system-i38,svirt_tcg_t,svirt_tcg_t,netlink_route_socket,create

audit2allow

#============= svirt_tcg_t ==============
allow svirt_tcg_t self:netlink_route_socket create;

audit2allow -R

#============= svirt_tcg_t ==============
allow svirt_tcg_t self:netlink_route_socket create;


Additional info:
hashmarkername: setroubleshoot
kernel:         3.6.6-3.fc18.x86_64
type:           libreport

Comment 1 Miroslav Grepl 2013-01-07 11:07:34 UTC
Fixed in selinux-policy-3.11.1-70.fc18.noarch

Comment 2 Fedora Update System 2013-01-15 22:19:48 UTC
selinux-policy-3.11.1-71.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-71.fc18

Comment 3 Fedora Update System 2013-01-18 20:40:36 UTC
Package selinux-policy-3.11.1-71.fc18:
* should fix your issue,
* was pushed to the Fedora 18 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.11.1-71.fc18'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-0945/selinux-policy-3.11.1-71.fc18
then log in and leave karma (feedback).

Comment 4 Raphaël Flores 2013-01-21 10:45:49 UTC
Tried to install virtualilzed Ubuntu 12.10 64bit into gnome-boxes

Package: (null)
OS Release: Fedora release 18 (Spherical Cow)

Comment 5 Fedora Update System 2013-01-23 01:55:02 UTC
selinux-policy-3.11.1-71.fc18 has been pushed to the Fedora 18 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.