apparmor complains about write access to a readonly file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libvirt (Ubuntu) |
Fix Released
|
Medium
|
Jamie Strandboge | ||
Karmic |
Fix Released
|
Medium
|
Jamie Strandboge | ||
Lucid |
Fix Released
|
Medium
|
Jamie Strandboge | ||
linux (Ubuntu) |
Fix Released
|
Medium
|
John Johansen | ||
Karmic |
Fix Released
|
Medium
|
John Johansen | ||
Lucid |
Fix Released
|
Medium
|
John Johansen |
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_
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='/
<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
ProcVersionSign
SourcePackage: libvirt
Uname: Linux 2.6.31-14-generic x86_64
tags: | added: apparmor |
Changed in linux (Ubuntu): | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu Karmic): | |
status: | Triaged → In Progress |
Changed in linux (Ubuntu Karmic): | |
status: | In Progress → Fix Committed |
Changed in libvirt (Ubuntu Karmic): | |
status: | In Progress → Fix Committed |
Changed in libvirt (Ubuntu Lucid): | |
milestone: | karmic-updates → none |
Changed in linux (Ubuntu Lucid): | |
milestone: | karmic-updates → none |
Changed in linux (Ubuntu Lucid): | |
status: | In Progress → Fix Released |
I should clarify, this isn't a functional regression, but libvirt should not try to write to installation media like this. If apparmor were not enabled, libvirt could potentially change the installation media, which would be bad.