]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix reset of cgroup when detaching USB device from LXC guests
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 4 Feb 2014 17:41:22 +0000 (17:41 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 17 Feb 2014 15:39:55 +0000 (15:39 +0000)
commit2c2bec94d27ccd070bee18a6113b1cfea6d80126
tree59055c9588ef4e9b0e507d7a61b55d8acdf3eb40
parenta537827d15516f2b59afb23ce2d50b8a88d7f090
Fix reset of cgroup when detaching USB device from LXC guests

When detaching a USB device from an LXC guest we must remove
the device from the cgroup ACL. Unfortunately we were telling
the cgroup code to use the guest /dev path, not the host /dev
path, and the guest device node had already been unlinked.
This was, however, fortunate since the code passed &priv->cgroup
instead of priv->cgroup, so would have crash if the device node
were accessible.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_driver.c