CVE-2013-6456: Avoid unsafe use of /proc/$PID/root in LXC hotunplug code
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 30 Jan 2014 17:58:36 +0000 (17:58 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 18 Feb 2014 12:59:14 +0000 (12:59 +0000)
commit5fc590ad9f4071350a8df4d567ba88baacc8334d
treedbba43d78acc607039bb820563ec0b94358ce206
parent1cadeafcaa422844a27ef622e2a7041d0235bcb3
CVE-2013-6456: Avoid unsafe use of /proc/$PID/root in LXC hotunplug code

Rewrite multiple hotunplug functions to to use the
virProcessRunInMountNamespace helper. This avoids
risk of a malicious guest replacing /dev with an absolute
symlink, tricking the driver into changing the host OS
filesystem.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_driver.c