Skip to content

Commit 016792f

Browse files
committed
ANDROID: xt_quota2: set usersize in xt_match registration object
Explicitly set what is visible to userspace Bug: 196046570 Test: passed netd test suites Signed-off-by: Todd Kjos <tkjos@google.com> Change-Id: Iacec0ef8ae290e01f1b60508d8abcd40a3653c83
1 parent 6fa30e1 commit 016792f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

net/netfilter/xt_quota2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ static struct xt_match quota_mt2_reg[] __read_mostly = {
343343
.match = quota_mt2,
344344
.destroy = quota_mt2_destroy,
345345
.matchsize = sizeof(struct xt_quota_mtinfo2),
346+
.usersize = offsetof(struct xt_quota_mtinfo2, master),
346347
.me = THIS_MODULE,
347348
},
348349
{
@@ -353,6 +354,7 @@ static struct xt_match quota_mt2_reg[] __read_mostly = {
353354
.match = quota_mt2,
354355
.destroy = quota_mt2_destroy,
355356
.matchsize = sizeof(struct xt_quota_mtinfo2),
357+
.usersize = offsetof(struct xt_quota_mtinfo2, master),
356358
.me = THIS_MODULE,
357359
},
358360
};

0 commit comments

Comments
 (0)