| @@ -654,7 +654,7 @@ static const struct nla_policy packet_policy[OVS_PACKET_ATTR_MAX + 1] = { · 653 unmodified lines |
| 654 | 654 | |
| 655 | 655 | static const struct genl_ops dp_packet_genl_ops[] = { |
| 656 | 656 | { .cmd = OVS_PACKET_CMD_EXECUTE, |
| 657 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 657 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 658 | 658 | .policy = packet_policy, |
| 659 | 659 | .doit = ovs_packet_cmd_execute |
| 660 | 660 | } |
| @@ -1391,12 +1391,12 @@ static const struct nla_policy flow_policy[OVS_FLOW_ATTR_MAX + 1] = { · 730 unmodified lines |
| 1391 | 1391 | |
| 1392 | 1392 | static const struct genl_ops dp_flow_genl_ops[] = { |
| 1393 | 1393 | { .cmd = OVS_FLOW_CMD_NEW, |
| 1394 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1394 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1395 | 1395 | .policy = flow_policy, |
| 1396 | 1396 | .doit = ovs_flow_cmd_new |
| 1397 | 1397 | }, |
| 1398 | 1398 | { .cmd = OVS_FLOW_CMD_DEL, |
| 1399 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1399 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1400 | 1400 | .policy = flow_policy, |
| 1401 | 1401 | .doit = ovs_flow_cmd_del |
| 1402 | 1402 | }, |
| @@ -1407,7 +1407,7 @@ static const struct genl_ops dp_flow_genl_ops[] = { · 4 unmodified lines |
| 1407 | 1407 | .dumpit = ovs_flow_cmd_dump |
| 1408 | 1408 | }, |
| 1409 | 1409 | { .cmd = OVS_FLOW_CMD_SET, |
| 1410 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1410 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1411 | 1411 | .policy = flow_policy, |
| 1412 | 1412 | .doit = ovs_flow_cmd_set, |
| 1413 | 1413 | }, |
| @@ -1777,12 +1777,12 @@ static const struct nla_policy datapath_policy[OVS_DP_ATTR_MAX + 1] = { · 363 unmodified lines |
| 1777 | 1777 | |
| 1778 | 1778 | static const struct genl_ops dp_datapath_genl_ops[] = { |
| 1779 | 1779 | { .cmd = OVS_DP_CMD_NEW, |
| 1780 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1780 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1781 | 1781 | .policy = datapath_policy, |
| 1782 | 1782 | .doit = ovs_dp_cmd_new |
| 1783 | 1783 | }, |
| 1784 | 1784 | { .cmd = OVS_DP_CMD_DEL, |
| 1785 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1785 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1786 | 1786 | .policy = datapath_policy, |
| 1787 | 1787 | .doit = ovs_dp_cmd_del |
| 1788 | 1788 | }, |
| @@ -1793,7 +1793,7 @@ static const struct genl_ops dp_datapath_genl_ops[] = { · 4 unmodified lines |
| 1793 | 1793 | .dumpit = ovs_dp_cmd_dump |
| 1794 | 1794 | }, |
| 1795 | 1795 | { .cmd = OVS_DP_CMD_SET, |
| 1796 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1796 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 1797 | 1797 | .policy = datapath_policy, |
| 1798 | 1798 | .doit = ovs_dp_cmd_set, |
| 1799 | 1799 | }, |
| @@ -2158,12 +2158,12 @@ static const struct nla_policy vport_policy[OVS_VPORT_ATTR_MAX + 1] = { · 358 unmodified lines |
| 2158 | 2158 | |
| 2159 | 2159 | static const struct genl_ops dp_vport_genl_ops[] = { |
| 2160 | 2160 | { .cmd = OVS_VPORT_CMD_NEW, |
| 2161 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 2161 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 2162 | 2162 | .policy = vport_policy, |
| 2163 | 2163 | .doit = ovs_vport_cmd_new |
| 2164 | 2164 | }, |
| 2165 | 2165 | { .cmd = OVS_VPORT_CMD_DEL, |
| 2166 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 2166 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 2167 | 2167 | .policy = vport_policy, |
| 2168 | 2168 | .doit = ovs_vport_cmd_del |
| 2169 | 2169 | }, |
| @@ -2174,7 +2174,7 @@ static const struct genl_ops dp_vport_genl_ops[] = { · 4 unmodified lines |
| 2174 | 2174 | .dumpit = ovs_vport_cmd_dump |
| 2175 | 2175 | }, |
| 2176 | 2176 | { .cmd = OVS_VPORT_CMD_SET, |
| 2177 | | − .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 2177 | + .flags = GENL_UNS_ADMIN_PERM, /* Requires CAP_NET_ADMIN privilege. */ |
| 2178 | 2178 | .policy = vport_policy, |
| 2179 | 2179 | .doit = ovs_vport_cmd_set, |
| 2180 | 2180 | }, |