Note: Security impact of Libvirt/LXC usage
Bug #1098582 reported by
Robert Clark
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Security Notes |
Fix Released
|
High
|
Robert Clark |
Bug Description
if you select libvirt/LXC as your
"virtualization driver", containers are actually not as isolated as you
may think: for example you can affect your own (and others') resource
quotas. See: https:/
To post a comment you must log in.
DRAFT::
Title
-----
Selecting LXC as Nova Virtualiztion Driver can lead to data compromise.
### Summary ###
LXC does not provide the same level of separatoin as hypervisors when chosen as the Nova 'virtualization driver'. Attempting to use LXC as a drop in replacement for a hypervisor can result in data exposure between tenants.
### Affected Services / Software ###
Nova, LXC, Libvirt, 'Virtualization Driver'
### Discussion ###
LXC (also known as Linux containers) is a virtualization technology that works at the operating system level. This is different from hardware virtualization, the approach used by other hypervisors such as KVM, Xen, and VMWare.
The quality of container isolation in LXC heavily depends on implementation. While pure LXC is generally well-isolated through various mechanisms (for example AppArmor in Ubuntu), LXC through libvirt is not.
A guest who operates within one container is able to effect another containers cpu share, memory limit and block devices among other issues.
For more information on the affects of this issue see this [bug] (https:/ /bugs.launchpad .net/ubuntu/ +source/ libvirt/ +bug/1088295)
### Recommeneded Actions ###
The root of this issue stems from the fact that AppArmour profiles are necessary to enforce container isolation. Such rules exist for normal LXC uses but are not yet enabled for libvirt-lxc.
Currently the OSSG advises that anyone deploying Nova in environments that require any level of separation use a hypervisor such as Xen, KVM, VMware or Hyper-V.
### Contacts / References ### lxc.sourceforge .net/
Nova :
LXC : http://
Libvirt :
Nova Configuration Options :
KVM :
Xen: