Strict-related commands porting
Test: built, flashed, booted
system/netd/tests/runtests.sh passes
Change-Id: Ibff8b050915c65e44cd37bb835943b8582fc003a
diff --git a/server/StrictController.h b/server/StrictController.h
index aee7c7e..1c2a891 100644
--- a/server/StrictController.h
+++ b/server/StrictController.h
@@ -31,8 +31,8 @@
public:
StrictController();
- int enableStrict(void);
- int disableStrict(void);
+ int setupIptablesHooks(void);
+ int resetChains(void);
int setUidCleartextPenalty(uid_t, StrictPenalty);
@@ -41,8 +41,9 @@
static const char* LOCAL_CLEAR_CAUGHT;
static const char* LOCAL_PENALTY_LOG;
static const char* LOCAL_PENALTY_REJECT;
+ std::mutex lock;
-protected:
+ protected:
// For testing.
friend class StrictControllerTest;
static int (*execIptablesRestore)(IptablesTarget target, const std::string& commands);