summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>2019-07-29 13:43:12 +0200
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-07-31 16:04:52 +0900
commit243eb5df5ce0e572a04b7fab320db242a487e044 (patch)
treee3534afe00fbbe6d92f0d3a236eb2d18489391f9
parent957021d33261d054781731392e4ea8b564f6a353 (diff)
downloadlinux-artik7-243eb5df5ce0e572a04b7fab320db242a487e044.tar.gz
linux-artik7-243eb5df5ce0e572a04b7fab320db242a487e044.tar.bz2
linux-artik7-243eb5df5ce0e572a04b7fab320db242a487e044.zip
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 <l.pawelczyk@samsung.com> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--net/netfilter/xt_owner.c2
1 files changed, 1 insertions, 1 deletions
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)) {