kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #98154
[Bug 453335] Re: apparmor complains about write access to a readonly file
Correction the bug number for the other bug is #1004606
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/453335
Title:
apparmor complains about write access to a readonly file
Status in libvirt package in Ubuntu:
Fix Released
Status in linux package in Ubuntu:
Fix Released
Status in libvirt source package in Lucid:
Fix Released
Status in linux source package in Lucid:
Fix Released
Status in libvirt source package in Karmic:
Fix Released
Status in linux source package in Karmic:
Fix Released
Bug description:
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/453335/+subscriptions