Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1149500 - SELinux is preventing /usr/bin/qemu-system-x86_64 from 'read' accesses on the chr_file /dev/net/tun.
Summary: SELinux is preventing /usr/bin/qemu-system-x86_64 from 'read' accesses on the...
Keywords:
Status: CLOSED DUPLICATE of bug 1147057
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 21
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a21fb1af5255fdca69f3f8b7b5b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-05 14:26 UTC by lonelywoolf
Modified: 2014-10-07 15:42 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-07 15:42:39 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description lonelywoolf 2014-10-05 14:26:10 UTC
Description of problem:
SELinux is preventing /usr/bin/qemu-system-x86_64 from 'read' accesses on the chr_file /dev/net/tun.

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

If вы считаете, что qemu-system-x86_64 следует разрешить доступ read к tun chr_file по умолчанию.
Then рекомендуется создать отчет об ошибке.
Чтобы разрешить доступ, можно создать локальный модуль политики.
Do
чтобы разрешить доступ, выполните:
# grep qemu-system-x86 /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:svirt_t:s0:c91,c596
Target Context                system_u:object_r:tun_tap_device_t:s0:c249,c894
Target Objects                /dev/net/tun [ chr_file ]
Source                        qemu-system-x86
Source Path                   /usr/bin/qemu-system-x86_64
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           qemu-system-x86-2.1.2-3.fc21.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.13.1-84.fc21.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.16.3-302.fc21.x86_64 #1 SMP Fri
                              Sep 26 14:27:20 UTC 2014 x86_64 x86_64
Alert Count                   146
First Seen                    2014-10-05 20:38:44 NOVT
Last Seen                     2014-10-05 20:39:01 NOVT
Local ID                      5bca03b5-afee-46d3-a85e-ea0ba39f044f

Raw Audit Messages
type=AVC msg=audit(1412516341.380:3620): avc:  denied  { read } for  pid=14946 comm="qemu-system-x86" path="/dev/net/tun" dev="devtmpfs" ino=1299 scontext=system_u:system_r:svirt_t:s0:c91,c596 tcontext=system_u:object_r:tun_tap_device_t:s0:c249,c894 tclass=chr_file permissive=0


type=SYSCALL msg=audit(1412516341.380:3620): arch=x86_64 syscall=read success=no exit=EACCES a0=17 a1=7f392363eb6c a2=11000 a3=20 items=0 ppid=1 pid=14946 auid=4294967295 uid=107 gid=107 euid=107 suid=107 fsuid=107 egid=107 sgid=107 fsgid=107 tty=(none) ses=4294967295 comm=qemu-system-x86 exe=/usr/bin/qemu-system-x86_64 subj=system_u:system_r:svirt_t:s0:c91,c596 key=(null)

Hash: qemu-system-x86,svirt_t,tun_tap_device_t,chr_file,read

Version-Release number of selected component:
selinux-policy-3.13.1-84.fc21.noarch

Additional info:
reporter:       libreport-2.2.3
hashmarkername: setroubleshoot
kernel:         3.16.3-302.fc21.x86_64
type:           libreport

Comment 1 Cole Robinson 2014-10-07 15:42:39 UTC

*** This bug has been marked as a duplicate of bug 1147057 ***


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