Home
last modified time | relevance | path

Searched refs:ALLOW (Results 1 - 12 of 12) sorted by relevance

/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/network/
H A Diptables_manager_test.cpp83 {Direction::INPUT, Action::ALLOW, Protocol::TCP, "192.168.2.100", "", "", "", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
85 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "192.168.1.1", "", "", "", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
86 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "192.168.1.1/20", "", "", "", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
87 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "", "192.168.1.1", "", "", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
89 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "80", "", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
91 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "80,90", "99", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
92 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
93 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901:1000", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
94 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901,1000", ""}, in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
95 {Direction::OUTPUT, Action::ALLOW, Protoco in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
114 {Direction::INPUT, Action::ALLOW, Protocol::ALL, "", "", "80", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
115 {Direction::INPUT, Action::ALLOW, Protocol::ALL, "", "", "", "90", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
118 {Direction::INVALID, Action::ALLOW, Protocol::INVALID, "192.168.1.1", "192.168.2.1", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
140 {Direction::INPUT, Action::ALLOW, Protocol::TCP, "192.168.2.100", "", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
142 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "192.168.1.1", "", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
143 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "192.168.1.1/20", "", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
144 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "", "192.168.1.1", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
146 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "80", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
148 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "80,90", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
149 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
150 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901-1000", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
151 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901,1000", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
152 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "", "5555"}}; HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
173 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901,1000", "123"}}; HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
192 {Direction::INPUT, Action::ALLOW, Protocol::TCP, "192.168.2.100", "", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
194 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "192.168.1.1", "", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
195 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "192.168.1.1/20", "", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
196 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "", "192.168.1.1", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
198 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "80", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
200 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "80,90", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
201 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
202 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901-1000", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
203 {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "901,1000", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
204 {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "", "5555"}}; HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
223 {Direction::INPUT, Action::ALLOW, Protocol::ALL, "", "", "80", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
224 {Direction::INPUT, Action::ALLOW, Protocol::ALL, "", "", "", "90", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
225 {Direction::INVALID, Action::ALLOW, Protocol::INVALID, "", "", "", "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
314 {Action::ALLOW, "1000", "www.example.com"}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
316 {Action::ALLOW, "", "www.example.com"}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
343 std::vector<DomainFilterRule> invalidRules{{Action::ALLOW, "1000", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
345 {Action::ALLOW, "1000", "www.ex/ample.com"}, {Action::INVALID, "1000", invalidDomainName}}; HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
365 {Action::ALLOW, "1000", "www.example.com"}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
367 {Action::ALLOW, "", "www.example.com"}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
388 {Action::ALLOW, "", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
390 {Action::ALLOW, "1000", "www.example.com"}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
392 {Action::ALLOW, "", "www.example.com"}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
412 {Action::ALLOW, "1000", ""}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
417 {Action::ALLOW, "1000", "www.ex/ample.com"}, HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
[all...]
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/network/rule/
H A Dfirewall_chain_rule_test.cpp48 firewallRule = {Direction::INPUT, Action::ALLOW, Protocol::UDP, "192.168.1.1", "192.168.2.2", "9090", "9091", in HWTEST_F()
56 firewallRule = {Direction::INPUT, Action::ALLOW, Protocol::UDP, "192.168.4.1", "192.168.5.1-192.168.5.254", in HWTEST_F()
65 firewallRule = {Direction::INPUT, Action::ALLOW, Protocol::UDP, "192.168.6.1-192.168.6.254", in HWTEST_F()
76 firewallRule = {Direction::INPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "", ""}; in HWTEST_F()
79 firewallRule = {Direction::OUTPUT, Action::ALLOW, Protocol::INVALID, "", "", "", "", ""}; in HWTEST_F()
97 firewallRule = {Direction::INPUT, Action::ALLOW, Protocol::ALL, "192.168.2.100", "192.168.2.200", "", "", "9999"}; in HWTEST_F()
103 firewallRule = {Direction::INPUT, Action::ALLOW, Protocol::TCP, "192.168.2.1/22", "192.168.2.200", "99,100", in HWTEST_F()
H A Ddomain_chain_rule_test.cpp68 DomainFilterRule domainFilterRule1{Action::ALLOW, "", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
/base/customization/enterprise_device_management/services/edm_plugin/src/network/rule/
H A Drule_utils.cpp27 case Action::ALLOW: in EnumToString()
38 return Action::ALLOW; in StringToAction()
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Ddomain_filter_rule_plugin_test.cpp112 IPTABLES::DomainFilterRule rule{IPTABLES::Action::ALLOW, "1000", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::TEST::IPTABLES::Action
127 IPTABLES::DomainFilterRule rule{IPTABLES::Action::ALLOW, "1000", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::TEST::IPTABLES::Action
143 IPTABLES::DomainFilterRule rule{IPTABLES::Action::ALLOW, "1000", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::TEST::IPTABLES::Action
159 IPTABLES::DomainFilterRule rule{IPTABLES::Action::ALLOW, "1000", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::TEST::IPTABLES::Action
175 IPTABLES::DomainFilterRule rule{IPTABLES::Action::ALLOW, "1000", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::TEST::IPTABLES::Action
H A Diptables_rule_plugin_test.cpp306 bool ret = plugin->ProcessFirewallAction(static_cast<int32_t>(IPTABLES::Action::ALLOW), action); in HWTEST_F()
378 bool ret = plugin->ConvertChainCommand(IPTABLES::Action::ALLOW, IPTABLES::Direction::INPUT, command); in HWTEST_F()
380 ret = plugin->ConvertChainCommand(IPTABLES::Action::ALLOW, IPTABLES::Direction::OUTPUT, command); in HWTEST_F()
428 bool ret = plugin->ConvertActionCommand(IPTABLES::Action::ALLOW, command1); in HWTEST_F()
/base/customization/enterprise_device_management/services/edm_plugin/src/network/
H A Diptables_manager.cpp68 if (action == Action::ALLOW && direction == Direction::INPUT) { in AddFirewallRule()
70 } else if (action == Action::ALLOW && direction == Direction::OUTPUT) { in AddFirewallRule()
86 if (action == Action::ALLOW) { in AddFirewallRule()
190 if (action == Action::ALLOW) { in AddDomainFilterRule()
213 if (action == Action::ALLOW) { in AddDomainFilterRule()
247 if (action == Action::ALLOW) { in RemoveDomainFilterRules()
294 if (action == Action::ALLOW) { in GetRemoveChainName()
303 if (action == Action::ALLOW) { in GetRemoveChainName()
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/network/executer/
H A Diexecuter_test.cpp109 DomainFilterRule domainFilterRule{Action::ALLOW, "9999", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
141 DomainFilterRule domainFilterRule{Action::ALLOW, "9999", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
195 DomainFilterRule domainFilterRule{Action::ALLOW, "9999", "www.example.com"}; in HWTEST_F() member in OHOS::EDM::IPTABLES::TEST::Action
/base/customization/enterprise_device_management/common/native/include/plugin_utils/
H A Diptables_utils.h30 enum class Action { INVALID = -1, ALLOW, DENY }; member in OHOS::EDM::IPTABLES::Action
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Diptables_rule_plugin.cpp204 if (action == IPTABLES::Action::ALLOW && direction == IPTABLES::Direction::INPUT) { in ConvertChainCommand()
206 } else if (action == IPTABLES::Action::ALLOW && direction == IPTABLES::Direction::OUTPUT) { in ConvertChainCommand()
241 case IPTABLES::Action::ALLOW: in ConvertActionCommand()
/base/customization/enterprise_device_management/common/native/src/plugin_utils/
H A Diptables_utils.cpp77 if (type >= static_cast<int32_t>(Action::ALLOW) && type <= static_cast<int32_t>(Action::DENY)) { in ProcessFirewallAction()
/base/customization/enterprise_device_management/interfaces/kits/network_manager/src/
H A Dnetwork_manager_addon.cpp36 NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(IPTABLES::Action::ALLOW), &nAllow)); in CreateFirewallActionObject()
37 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "ALLOW", nAllow)); in CreateFirewallActionObject()

Completed in 14 milliseconds