Comment 4 for bug 1814061

Revision history for this message
Eero Aaltonen (ejn) wrote :

I tried adding the five lines you posted on the bottom of /etc/apparmor.d/abstractions/libvirt-qemu

There are no more 'apparmor="DENIED"' entries. But the disk still bounced back. I see entries:

[ 673.188482] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[ 673.435419] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK

I also noticed that `sudo apparmor_parser -r /etc/apparmor.d/abstractions/libvirt-qemu` complains that

AppArmor parser error for /etc/apparmor.d/abstractions/libvirt-qemu in /etc/apparmor.d/abstractions/base at line 23: syntax error, unexpected TOK_MODE, expecting TOK_OPEN

, but it seems the rules took effect anyway.