Bug 809438 - SELinux is preventing /usr/bin/qemu-kvm from 'add_name' accesses on the directory Windows8-ConsumerPreview-64bit-English.iso.monitor.
SELinux is preventing /usr/bin/qemu-kvm from 'add_name' accesses on the direc...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
x86_64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-04-03 07:33 EDT by Patryk Zawadzki
Modified: 2012-04-18 18:50 EDT (History)
3 users (show)

See Also:
Fixed In Version: selinux-policy-3.10.0-114.fc17
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-04-18 18:50:31 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Patryk Zawadzki 2012-04-03 07:33:52 EDT
libreport version: 2.0.10
executable:     /usr/bin/python
hashmarkername: setroubleshoot
kernel:         3.3.0-8.fc17.x86_64
time:           wto, 3 kwi 2012, 13:33:40

:SELinux is preventing /usr/bin/qemu-kvm from 'add_name' accesses on the directory Windows8-ConsumerPreview-64bit-English.iso.monitor.
:*****  Plugin catchall (100. confidence) suggests  ***************************
:If aby qemu-kvm powinno mieć domyślnie add_name dostęp do Windows8-ConsumerPreview-64bit-English.iso.monitor directory.
:Then proszę to zgłosić jako błąd.
:Można utworzyć lokalny moduł polityki, aby umożliwić ten dostęp.
:można tymczasowo zezwolić na ten dostęp wykonując polecenia:
:# grep qemu-kvm /var/log/audit/audit.log | audit2allow -M mojapolityka
:# semodule -i mojapolityka.pp
:Additional Information:
:Source Context                system_u:system_r:svirt_t:s0:c78,c795
:Target Context                unconfined_u:object_r:virt_home_t:s0
:Target Objects                Windows8-ConsumerPreview-64bit-English.iso.monitor
:                              [ dir ]
:Source                        qemu-kvm
:Source Path                   /usr/bin/qemu-kvm
:Port                          <Nieznane>
:Host                          (removed)
:Source RPM Packages           qemu-system-x86-1.0-11.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-106.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.3.0-8.fc17.x86_64
:                              #1 SMP Thu Mar 29 18:18:26 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    wto, 3 kwi 2012, 13:32:52
:Last Seen                     wto, 3 kwi 2012, 13:32:52
:Local ID                      4cfe5933-ae73-44b5-90ed-e28cc3a3133b
:Raw Audit Messages
:type=AVC msg=audit(1333452772.436:271): avc:  denied  { add_name } for  pid=7529 comm="qemu-kvm" name="Windows8-ConsumerPreview-64bit-English.iso.monitor" scontext=system_u:system_r:svirt_t:s0:c78,c795 tcontext=unconfined_u:object_r:virt_home_t:s0 tclass=dir
:type=SYSCALL msg=audit(1333452772.436:271): arch=x86_64 syscall=bind success=no exit=EACCES a0=3 a1=7fff153375d0 a2=6e a3=7fd9ea4cbef9 items=0 ppid=1 pid=7529 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=6 comm=qemu-kvm exe=/usr/bin/qemu-kvm subj=system_u:system_r:svirt_t:s0:c78,c795 key=(null)
:Hash: qemu-kvm,svirt_t,virt_home_t,dir,add_name
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
Comment 1 Miroslav Grepl 2012-04-03 08:01:18 EDT
These are needed

allow svirt_t virt_home_t:dir { write add_name };
allow svirt_t virt_home_t:sock_file create

for monitors. 

should we allow it?
Comment 2 Miroslav Grepl 2012-04-05 09:23:28 EDT
I added it to F17.
Comment 3 Fedora Update System 2012-04-13 04:40:52 EDT
selinux-policy-3.10.0-114.fc17 has been submitted as an update for Fedora 17.
Comment 4 Fedora Update System 2012-04-13 21:45:40 EDT
Package selinux-policy-3.10.0-114.fc17:
* should fix your issue,
* was pushed to the Fedora 17 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.10.0-114.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
Comment 5 Fedora Update System 2012-04-18 18:50:31 EDT
selinux-policy-3.10.0-114.fc17 has been pushed to the Fedora 17 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.