-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ShivamKumarJha <[email protected]>
- Loading branch information
1 parent
381fbff
commit 621a9d6
Showing
7 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
* Some ARP specific bits are: | ||
* | ||
* Copyright (C) 2002 David S. Miller ([email protected]) | ||
* Copyright (C) 2021 XiaoMi, Inc. | ||
* Copyright (C) 2006-2009 Patrick McHardy <[email protected]> | ||
* | ||
*/ | ||
|
@@ -1406,7 +1407,7 @@ static int compat_get_entries(struct net *net, | |
xt_compat_lock(NFPROTO_ARP); | ||
t = xt_find_table_lock(net, NFPROTO_ARP, get.name); | ||
if (!IS_ERR(t)) { | ||
const struct xt_table_info *private = t->private; | ||
const struct xt_table_info *private = xt_table_get_private_protected(t); | ||
struct xt_table_info info; | ||
|
||
ret = compat_table_info(private, &info); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
* Packet matching code. | ||
* | ||
* Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling | ||
* Copyright (C) 2021 XiaoMi, Inc. | ||
* Copyright (C) 2000-2005 Netfilter Core Team <[email protected]> | ||
* Copyright (C) 2006-2010 Patrick McHardy <[email protected]> | ||
*/ | ||
|
@@ -1616,7 +1617,7 @@ compat_get_entries(struct net *net, struct compat_ipt_get_entries __user *uptr, | |
xt_compat_lock(AF_INET); | ||
t = xt_find_table_lock(net, AF_INET, get.name); | ||
if (!IS_ERR(t)) { | ||
const struct xt_table_info *private = t->private; | ||
const struct xt_table_info *private = xt_table_get_private_protected(t); | ||
struct xt_table_info info; | ||
ret = compat_table_info(private, &info); | ||
if (!ret && get.size == info.size) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
* Packet matching code. | ||
* | ||
* Copyright (C) 1999 Paul `Rusty' Russell & Michael J. Neuling | ||
* Copyright (C) 2021 XiaoMi, Inc. | ||
* Copyright (C) 2000-2005 Netfilter Core Team <[email protected]> | ||
* Copyright (c) 2006-2010 Patrick McHardy <[email protected]> | ||
*/ | ||
|
@@ -1625,7 +1626,7 @@ compat_get_entries(struct net *net, struct compat_ip6t_get_entries __user *uptr, | |
xt_compat_lock(AF_INET6); | ||
t = xt_find_table_lock(net, AF_INET6, get.name); | ||
if (!IS_ERR(t)) { | ||
const struct xt_table_info *private = t->private; | ||
const struct xt_table_info *private = xt_table_get_private_protected(t); | ||
struct xt_table_info info; | ||
ret = compat_table_info(private, &info); | ||
if (!ret && get.size == info.size) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters