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:16:04 +0000 (13:16 +0000)
commit8b546028f901dc414463678574ceabbacc37c4cb
treed4746443897a2399361408145d0629122a65e37a
parentb0ed2d94ace3c57198ce7b4793f906abf5397e36
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