From: Lukasz Pawelczyk Date: Mon, 29 Jul 2019 11:43:12 +0000 (+0200) Subject: netfilter: xt_owner: A fix for backport of 'xt_owner: Add supplementary groups option' X-Git-Tag: submit/tizen/20190801.010047~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d47b577a25111f57d75bc7f144156f0d23a9ec0e;p=profile%2Fwearable%2Fplatform%2Fkernel%2Flinux-3.18-exynos7270.git 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' (69a070c54920). Change-Id: Id8f415cd3e15a21a64bc767131f3890594e06572 Signed-off-by: Lukasz Pawelczyk Signed-off-by: Seung-Woo Kim --- diff --git a/net/netfilter/xt_owner.c b/net/netfilter/xt_owner.c index 2289544b160..c1b51e74a52 100644 --- a/net/netfilter/xt_owner.c +++ b/net/netfilter/xt_owner.c @@ -72,7 +72,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)) {