netfilter: xt_owner: A fix for backport of 'xt_owner: Add supplementary groups option' 08/211208/1
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Mon, 29 Jul 2019 11:43:12 +0000 (13:43 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 31 Jul 2019 07:03:08 +0000 (16:03 +0900)
This patch fixes the backport of 'netfilter: xt_owner: Add
supplementary groups option' (69a070c54920).

Change-Id: Id8f415cd3e15a21a64bc767131f3890594e06572
Signed-off-by: Lukasz Pawelczyk <l.pawelczyk@samsung.com>
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
net/netfilter/xt_owner.c

index 2289544b160fcfca8506582d1cb2e2b860a2851f..c1b51e74a526714819200d0ca0e19215a2978719 100644 (file)
@@ -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)) {