Re:QEMU VM Escape
by geofft on Monday August 26, 2019 @08:46AM
(#20799376)
In a production system, it's highly unlikely that there is anything on the host besides the VM. You're not running qemu on one core and an unvirtualized database on another. Amazon is not running an S3 file server on the same physical machine that's being an EC2 host. The only valuable thing is other VMs.
And I think that there is no common configuration of OpenStack or libvirt that assigns unique access control labels per VM. Every qemu runs with the same privileges, ergo one exploited qemu can laterally attack another. (But maybe there's something nifty I'm missing?)
(Agree that for the use case of desktop virtualization, a good SELinux config can keep it from accessing your browser cookies.)
Re:QEMU VM Escape
by bonzini on Monday August 26, 2019 @12:42PM
(#20801298)
FWIW, sVirt is the "code name" for Libvirt's SELinux labeling scheme. It uses SELinux multi-category security to ensure that each QEMU can only access resources destined to one VM.
And I think that there is no common configuration of OpenStack or libvirt that assigns unique access control labels per VM. Every qemu runs with the same privileges, ergo one exploited qemu can laterally attack another. (But maybe there's something nifty I'm missing?)
(Agree that for the use case of desktop virtualization, a good SELinux config can keep it from accessing your browser cookies.)