tag 630701 + wontfix
thanks
16.06.2011 15:57, Arno Schuring wrote:
You're doing it wrong. Please don't assign cap_net_admin to kvm binary.
If you want to be able to use tap networking, pre-configure a few tap
devices in /etc/network/interfaces or in /etc/rc.local (together with
adding them to appropriate bridges and whatnot) and assign them user/group
permissions.
By giving cap_net_admin to kvm binary you effectively gives it full
control over your network, which includes reconfiguration of your
eth0, adding/removing bridges and whatnot. It's too much.
And when you allow regular users to create tap devices like that,
you'll have to give them additional powers anyway, since these
tap devices needs to be configured too, which is done in the
script (usually /etc/kvm/kvm-ifup) executed by kvm.
This should be done at dpkg level, in a way similar to dpkg statoverride
mechanism. You may want to file a wishlist bug against dpkg.
But again, your problem is better be solved by a different way.
/mjt