Skip to content

Commit 3f54959

Browse files
donaldhummakynes
authored andcommitted
netfilter: nfnetlink: Report extack policy errors for batched ops
The nftables batch processing does not currently populate extack with policy errors. Fix this by passing extack when parsing batch messages. Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 544070d commit 3f54959

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nfnetlink.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh,
517517
err = nla_parse_deprecated(cda,
518518
ss->cb[cb_id].attr_count,
519519
attr, attrlen,
520-
ss->cb[cb_id].policy, NULL);
520+
ss->cb[cb_id].policy, &extack);
521521
if (err < 0)
522522
goto ack;
523523

0 commit comments

Comments
 (0)