[libvirt] [PATCH 4/8] Avoid unsafe use of /proc/$PID/root in LXC disk hotplug

2014-02-17 Thread Daniel P. Berrange
Rewrite lxcDomainAttachDeviceDiskLive 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 4/8] Avoid unsafe use of /proc/$PID/root in LXC disk hotplug

2014-02-17 Thread Eric Blake
On 02/17/2014 09:38 AM, Daniel P. Berrange wrote: Rewrite lxcDomainAttachDeviceDiskLive 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.