This bug has been copied from bug #710151 and has been proposed to be backported to 5.6 z-stream (EUS).
In POST: http://post-office.corp.redhat.com/archives/rhvirt-patches/2011-October/msg00359.html
libvirt-0.8.2-15.el5_6.5 kernel-2.6.18-238.27.1.el5 kvm-83-224.el5_6.1 Verified this bug. # cat disk.xml <disk type="file"> <source file="/var/lib/libvirt/images/test.img" /> <target dev="vdb" /> </disk> # virsh detach-device RHEL-5.5-PAE-virtio.raw disk.xml Device detached successfully # grep detach /var/log/audit/audit.log type=VIRT_RESOURCE msg=audit(1318607284.480:78): user pid=3959 uid=0 auid=4294967295 subj=system_u:system_r:virtd_t:s0-s0:c0.c1023 msg='resrc=disk reason=detach vm="RHEL-5.5-PAE-virtio.raw" uuid=bb5a62dc-6b0f-56f1-34a8-fd2de524e7c1 old-disk="/var/lib/libvirt/images/test.img" new-disk="?": exe="/usr/sbin/libvirtd" (hostname=?, addr=?, terminal=? res=success)'
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2011-1411.html