• D
    Fix path used for USB device attach with LXC · 7366398f
    Daniel P. Berrange 提交于
    The LXC code missed the 'usb' component out of the path
    /dev/bus/usb/$BUSNUM/$DEVNUM, so it failed to actually
    setup cgroups for the device. This was in fact lucky
    because the call to virLXCSetupHostUsbDeviceCgroup
    was also mistakenly passing '&priv->cgroup' instead of
    just 'priv->cgroup'. So once the path is fixed, libvirtd
    would then crash trying to access the bogus virCgroupPtr
    pointer. This would have been a security issue, were it
    not for the bogus path preventing the pointer reference
    being reached.
    Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
    (cherry picked from commit c3648972)
    7366398f
lxc_driver.c 144.3 KB