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 13:18:47 +0000 (13:18 +0000)
commit3e97a53caa9adddd47da1c22dbed81ef2e02f735
treeafb88682bd57f79f8fd0a05124d0ec2cee4db22e
parent17188260657e095f5d210bc73ba1661875a8f885
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)
src/lxc/lxc_driver.c