From 243eb5df5ce0e572a04b7fab320db242a487e044 Mon Sep 17 00:00:00 2001 From: Lukasz Pawelczyk Date: Mon, 29 Jul 2019 13:43:12 +0200 Subject: netfilter: xt_owner: A fix for backport of 'xt_owner: Add supplementary groups option' This patch fixes the backport of 'netfilter: xt_owner: Add supplementary groups option' (8413c52116d5). Change-Id: I85fd812744fd95b4c7f4640670a685c033e024ad Signed-off-by: Lukasz Pawelczyk Signed-off-by: Seung-Woo Kim --- net/netfilter/xt_owner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/xt_owner.c b/net/netfilter/xt_owner.c index 7305492b22ad..88aa4bf86ac1 100644 --- a/net/netfilter/xt_owner.c +++ b/net/netfilter/xt_owner.c @@ -74,7 +74,7 @@ owner_mt(const struct sk_buff *skb, struct xt_action_param *par) if (!match && (info->match & XT_OWNER_SUPPL_GROUPS) && gi) { for (i = 0; i < gi->ngroups; ++i) { - kgid_t group = gi->gid[i]; + kgid_t group = GROUP_AT(gi, i); if (gid_gte(group, gid_min) && gid_lte(group, gid_max)) { -- cgit v1.2.3