Bug 479614

Summary: Unable to install new domain due to SELinux policy error
Product: [Fedora] Fedora Reporter: James Morris <jmorris>
Component: virt-managerAssignee: Daniel Berrangé <berrange>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: berrange, crobinso, dwalsh, hbrock, quintela, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-03 17:37:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description James Morris 2009-01-12 04:29:16 UTC
In current rawhide, I get this when attempting to install a new domain with virt-manager.


virt-manager-0.6.0-6.fc11.x86_64
kernel-2.6.29-0.25.rc0.git14.fc11.x86_64



Additional Information:

Source Context                unconfined_u:system_r:qemu_t:s0
Target Context                system_u:object_r:ptmx_t:s0
Target Objects                ptmx [ chr_file ]
Source                        qemu-kvm
Source Path                   /usr/bin/qemu-kvm
Port                          <Unknown>
Host                          amd
Source RPM Packages           kvm-81-2.fc11
Target RPM Packages           
Policy RPM                    selinux-policy-3.6.2-2.fc11
Selinux Enabled               True
Policy Type                   targeted
MLS Enabled                   True
Enforcing Mode                Enforcing
Plugin Name                   catchall_file
Host Name                     amd
Platform                      Linux amd 2.6.29-0.25.rc0.git14.fc11.x86_64 #1 SMP
                              Sat Jan 10 02:55:41 EST 2009 x86_64 x86_64
Alert Count                   2
First Seen                    Mon Jan 12 15:23:15 2009
Last Seen                     Mon Jan 12 15:23:40 2009
Local ID                      6e5595ff-490b-46de-8fba-cf997edce1f9
Line Numbers                  

Raw Audit Messages            

node=amd type=AVC msg=audit(1231734220.519:70): avc:  denied  { read write } for  pid=2951 comm="qemu-kvm" name="ptmx" d
ev=tmpfs ino=474 scontext=unconfined_u:system_r:qemu_t:s0 tcontext=system_u:object_r:ptmx_t:s0 tclass=chr_file

node=amd type=SYSCALL msg=audit(1231734220.519:70): arch=c000003e syscall=2 success=no exit=-13 a0=7fdaf5d0181f a1=2 a2=
0 a3=7ffffe6144f0 items=0 ppid=2836 pid=2951 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) s
es=3 comm="qemu-kvm" exe="/usr/bin/qemu-kvm" subj=unconfined_u:system_r:qemu_t:s0 key=(null)

Comment 1 Daniel Berrangé 2009-04-03 17:37:50 UTC
I've just tested this and it appears to work fine in current rawhide, so assuming this was an earlier policy bug. Re-open if it recurrs...