diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2010-09-02 14:05:30 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2010-09-06 09:49:31 +0300 |
commit | 87d6a412bd1ed82c14cabd4b408003b23bbd2880 (patch) | |
tree | 598f8fc4a19f9b52e531ab41a1c45796358956d1 /net/ipv4/xfrm4_mode_beet.c | |
parent | 73457f0f836956747e0394320be2163c050e96ef (diff) | |
download | kernel_samsung_smdk4412-87d6a412bd1ed82c14cabd4b408003b23bbd2880.zip kernel_samsung_smdk4412-87d6a412bd1ed82c14cabd4b408003b23bbd2880.tar.gz kernel_samsung_smdk4412-87d6a412bd1ed82c14cabd4b408003b23bbd2880.tar.bz2 |
vhost: fix attach to cgroups regression
Since 2.6.36-rc1, non-root users of vhost-net fail to attach
if they are in any cgroups.
The reason is that when qemu uses vhost, vhost wants to attach
its thread to all cgroups that qemu has. But we got the API backwards,
so a non-priveledged process (Qemu) tried to control
the priveledged one (vhost), which fails.
Fix this by switching to the new cgroup_attach_task_all,
and running it from the vhost thread.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'net/ipv4/xfrm4_mode_beet.c')
0 files changed, 0 insertions, 0 deletions