Description of problem: libvirt should not allow read only connection call virDomainSetGuestVcpus Version-Release number of selected component (if applicable): v1.3.5-388-g03ce132 How reproducible: 100% Steps to Reproduce: 1. # virsh guestvcpus rhel7.0-rhel vcpus : 0-5 online : 0-5 offlinable : 1-5 2. # virsh -r guestvcpus rhel7.0-rhel --disable 5 # virsh guestvcpus rhel7.0-rhel vcpus : 0-5 online : 0-4 offlinable : 1-5 3. Actual results: virsh call virDomainSetGuestVcpus success with read only connection, however this function will enable/disable guest vcpu Expected results: forbid it Additional info:
Fixed upstream: commit dfeb19ff60cb92a9088cfa2e827cf5cb4720dd19 Author: Peter Krempa <pkrempa> Date: Thu Jun 23 09:02:29 2016 +0200 Allow virDomain(SG)etGuestVcpus on read-write connection only Guest agent interaction is considered privileged.