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 18:29:50 +0000 (18:29 +0000)
commitf84056cf6166332b1f15f3e6584a88f5d42273fe
tree4c341b109e239197cd7db7cb57f3787824a2f513
parent0e9fee68b3bff24e4d3ab48de8129946202f3bc0
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>
(cherry picked from commit 5fc590ad9f4071350a8df4d567ba88baacc8334d)

Conflicts:
src/lxc/lxc_driver.c: OOM + cgroups error reporting
src/lxc/lxc_driver.c