diff options
Diffstat (limited to 'net/openvswitch/conntrack.c')
-rw-r--r-- | net/openvswitch/conntrack.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/openvswitch/conntrack.c b/net/openvswitch/conntrack.c index 1b6896896fff..51080004677e 100644 --- a/net/openvswitch/conntrack.c +++ b/net/openvswitch/conntrack.c | |||
@@ -2154,18 +2154,15 @@ static struct genl_ops ct_limit_genl_ops[] = { | |||
2154 | { .cmd = OVS_CT_LIMIT_CMD_SET, | 2154 | { .cmd = OVS_CT_LIMIT_CMD_SET, |
2155 | .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN | 2155 | .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN |
2156 | * privilege. */ | 2156 | * privilege. */ |
2157 | .policy = ct_limit_policy, | ||
2158 | .doit = ovs_ct_limit_cmd_set, | 2157 | .doit = ovs_ct_limit_cmd_set, |
2159 | }, | 2158 | }, |
2160 | { .cmd = OVS_CT_LIMIT_CMD_DEL, | 2159 | { .cmd = OVS_CT_LIMIT_CMD_DEL, |
2161 | .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN | 2160 | .flags = GENL_ADMIN_PERM, /* Requires CAP_NET_ADMIN |
2162 | * privilege. */ | 2161 | * privilege. */ |
2163 | .policy = ct_limit_policy, | ||
2164 | .doit = ovs_ct_limit_cmd_del, | 2162 | .doit = ovs_ct_limit_cmd_del, |
2165 | }, | 2163 | }, |
2166 | { .cmd = OVS_CT_LIMIT_CMD_GET, | 2164 | { .cmd = OVS_CT_LIMIT_CMD_GET, |
2167 | .flags = 0, /* OK for unprivileged users. */ | 2165 | .flags = 0, /* OK for unprivileged users. */ |
2168 | .policy = ct_limit_policy, | ||
2169 | .doit = ovs_ct_limit_cmd_get, | 2166 | .doit = ovs_ct_limit_cmd_get, |
2170 | }, | 2167 | }, |
2171 | }; | 2168 | }; |
@@ -2179,6 +2176,7 @@ struct genl_family dp_ct_limit_genl_family __ro_after_init = { | |||
2179 | .name = OVS_CT_LIMIT_FAMILY, | 2176 | .name = OVS_CT_LIMIT_FAMILY, |
2180 | .version = OVS_CT_LIMIT_VERSION, | 2177 | .version = OVS_CT_LIMIT_VERSION, |
2181 | .maxattr = OVS_CT_LIMIT_ATTR_MAX, | 2178 | .maxattr = OVS_CT_LIMIT_ATTR_MAX, |
2179 | .policy = ct_limit_policy, | ||
2182 | .netnsok = true, | 2180 | .netnsok = true, |
2183 | .parallel_ops = true, | 2181 | .parallel_ops = true, |
2184 | .ops = ct_limit_genl_ops, | 2182 | .ops = ct_limit_genl_ops, |