Hide Forgot
Description of problem: virsh console was allowed to connect guest console under readonly mode Version-Release number of selected component (if applicable): libvirt-0.8.2-15.el5_6.3 xen-3.0.3-120.el5_6.1 kernel-2.6.18-238.8.1.el5 How reproducible: always Steps to Reproduce: # virsh -r Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh > console local Connected to domain local Escape character is ^] Actual results: was allowed to connect guest console under readonly mode Expected results: Forbidden to connect guest console under readonly mode Additional info:
For kvm-83-224.el5, there is the same problem.
Console APIs, which do not allow console access through readonly connection, were added to libvirt in 0.8.6. In 0.8.2, guest's console is accessed by directly opening appropriate /dev/pts/* device and access to it is controlled by file permissions.