Initial commit, syncing up to v115
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
From 7cb717fed8faa8da03d90bb2e40d9e383c08e417 Mon Sep 17 00:00:00 2001
|
||||
From: Pierre-Hugues Husson <phh@phh.me>
|
||||
Date: Mon, 2 Jul 2018 22:01:43 +0200
|
||||
Subject: [PATCH] [device] ::Huawei Kirin 960:: accept broken rpfilter match
|
||||
|
||||
How bad a security flaw is this?
|
||||
People lived with rpfilter on IPv4 for a very long time...
|
||||
|
||||
Change-Id: I9aa63d18e54a8254133adf97bf757c03d6b66757
|
||||
---
|
||||
server/TetherController.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/server/TetherController.cpp b/server/TetherController.cpp
|
||||
index 06eaf94..884b813 100644
|
||||
--- a/server/TetherController.cpp
|
||||
+++ b/server/TetherController.cpp
|
||||
@@ -625,7 +625,7 @@ int TetherController::setForwardRules(bool add, const char *intIface, const char
|
||||
"*raw\n"
|
||||
"%s %s -i %s -m rpfilter --invert ! -s fe80::/64 -j DROP\n"
|
||||
"COMMIT\n", op, LOCAL_RAW_PREROUTING, intIface);
|
||||
- if (iptablesRestoreFunction(V6, rpfilterCmd, nullptr) == -1 && add) {
|
||||
+ if (iptablesRestoreFunction(V6, rpfilterCmd, nullptr) == -1 && add && false) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
--
|
||||
2.17.1
|
||||
|
||||
Reference in New Issue
Block a user