[libvirt] [PATCH 7/8] Avoid unsafe use of /proc/$PID/root in LXC chardev hostdev hotplug

2014-02-17 Thread Daniel P. Berrange
Rewrite lxcDomainAttachDeviceHostdevMisceLive function to use the virProcessRunInMountNamespace helper. This avoids risk of a malicious guest replacing /dev with a absolute symlink, tricking the driver into changing the host OS filesystem. Signed-off-by: Daniel P. Berrange berra...@redhat.com ---

Re: [libvirt] [PATCH 7/8] Avoid unsafe use of /proc/$PID/root in LXC chardev hostdev hotplug

2014-02-17 Thread Eric Blake
On 02/17/2014 09:39 AM, Daniel P. Berrange wrote: Rewrite lxcDomainAttachDeviceHostdevMisceLive function s/Misce/Misc/ to use the virProcessRunInMountNamespace helper. This avoids risk of a malicious guest replacing /dev with a absolute symlink, tricking the driver into changing the host OS