Public bug reported:

When doing libvirt/apparmor ISO testing, I noticed that if I try to create a VM 
via an ISO image, I get the following apparmor denied message:
type=APPARMOR_DENIED msg=audit(1255714703.311:56): operation="open" pid=31330 
parent=1 profile="libvirt-7e7f916e-ff5a-c997-e9f6-c379793fd5be" 
requested_mask="::rw" denied_mask="::w" fsuid=0 ouid=1000 
name="/home/jamie/vms/isos/karmic/karmic-desktop-i386.iso"

What is happening is that libvirt is for some reason trying to write to this 
file, but it shouldn't. virt-manager shows this device as readonly and the XML 
for the VM shows it too:
    <disk type='file' device='cdrom'>
      <source file='/home/jamie/vms/isos/karmic/karmic-desktop-i386.iso'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>

The installation proceeds just fine and this isn't a regression, but
libvirt should not try to write to installation media like this.  I
encountered this when installing via virt-manager using the following:
local ISO, os type: generic/generic, kvm/i686, 512, 1 vcpu, 8GB disk,
don't allocate now

ProblemType: Bug
Architecture: amd64
Date: Fri Oct 16 12:47:32 2009
DistroRelease: Ubuntu 9.10
Package: libvirt-bin 0.7.0-1ubuntu11
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.47-generic
SourcePackage: libvirt
Uname: Linux 2.6.31-14-generic x86_64

** Affects: libvirt (Ubuntu)
     Importance: Low
         Status: New


** Tags: amd64 apport-bug

-- 
libvirt via virt-manager tries to write to a readonly ISO image
https://bugs.launchpad.net/bugs/453335
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to