mirror of
https://github.com/openvswitch/ovs
synced 2025-09-04 08:15:25 +00:00
netlink linux: enable listening to all nsids
Internal ports may be moved to another network namespace and when that happens, the vswitch stops receiving netlink notifications. This patch enables the vswitch to listen to all network namespaces that have a nsid assigned into the network namespace where the socket has been opened. It requires kernel 4.2 or newer. Signed-off-by: Flavio Leitner <fbl@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
committed by
Ben Pfaff
parent
756819ddd7
commit
cf114a7fce
@@ -820,7 +820,8 @@ daemon_become_new_user_linux(bool access_datapath OVS_UNUSED)
|
||||
|
||||
if (access_datapath && !ret) {
|
||||
ret = capng_update(CAPNG_ADD, cap_sets, CAP_NET_ADMIN)
|
||||
|| capng_update(CAPNG_ADD, cap_sets, CAP_NET_RAW);
|
||||
|| capng_update(CAPNG_ADD, cap_sets, CAP_NET_RAW)
|
||||
|| capng_update(CAPNG_ADD, cap_sets, CAP_NET_BROADCAST);
|
||||
}
|
||||
} else {
|
||||
ret = -1;
|
||||
|
Reference in New Issue
Block a user