Re: [libvirt] [PATCH 5/8] Avoid unsafe use of /proc/$PID/root in LXC USB hotplug

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

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

2014-02-17 Thread Daniel P. Berrange
Rewrite lxcDomainAttachDeviceHostdevSubsysUSBLive 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 --- src/lxc/lxc_dr