netfilter: netlink: Report extack policy errors for batched ops
Subsystems (3)
PATCH 1/1 netfilter: netlink: 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 <[email protected]>
--- net/netfilter/nfnetlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/netfilter/nfnetlink.c +1 -1
@@ -517,7 +517,7 @@ static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, err =nla_parse_deprecated (cda, ss->cb[cb_id].attr_count, attr, attrlen, - ss->cb[cb_id].policy,NULL ); + ss->cb[cb_id].policy, &extack);if (err <0 ) goto ack;
Signature · 1 line
2.47.0
Quoted 4 lines · Donald Hunter
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 <[email protected]>
Reviewed-by Simon Horman <[email protected]>