This patch is not tested but suggests that more than just the AppArmor driver is affected, so I am forwarding it here. That bug is kinda all over the place and has various things unrelated to this report.
Here is the comment and submitted patch:
"Patch to allow PCI pass through to work woth app armor. It's currently missing a couple of files"
Someone reported a bug in Ubuntu on pcidev devices not being correctly added with the AppArmor driver and a patch was submitted: /bugs.launchpad .net/ubuntu/ +source/ libvirt/ +bug/545795/ comments/ 29
https:/
This patch is not tested but suggests that more than just the AppArmor driver is affected, so I am forwarding it here. That bug is kinda all over the place and has various things unrelated to this report.
Here is the comment and submitted patch:
"Patch to allow PCI pass through to work woth app armor. It's currently missing a couple of files"
--- libvirt- 0.7.5.orig/ src/util/ pci.c 2010-06-11 01:43:41 +0000 0.7.5/src/ util/pci. c 2010-06-11 01:45:06 +0000
STRPREFIX (ent->d_ name, "resource") ||
STREQ( ent->d_ name, "rom")) {
virReportOOM Error(conn) ;
+++ libvirt-
@@ -1089,6 +1089,8 @@
*/
if (STREQ(ent->d_name, "config") ||
+ STREQ(ent->d_name, "vendor") ||
+ STREQ(ent->d_name, "device") ||
if (virAsprintf(&file, "%s/%s", pcidir, ent->d_name) < 0) {