netfilter: nf_tables: allow to fetch set elements when table has an owner
[platform/kernel/linux-starfive.git] / net / netfilter / nf_tables_api.c
index dca5352..1a9d759 100644 (file)
@@ -5439,7 +5439,7 @@ static int nf_tables_getsetelem(struct sk_buff *skb,
        int rem, err = 0;
 
        table = nft_table_lookup(net, nla[NFTA_SET_ELEM_LIST_TABLE], family,
-                                genmask, NETLINK_CB(skb).portid);
+                                genmask, 0);
        if (IS_ERR(table)) {
                NL_SET_BAD_ATTR(extack, nla[NFTA_SET_ELEM_LIST_TABLE]);
                return PTR_ERR(table);