Home
last modified time | relevance | path

Searched refs:chainType (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/core/
H A Dnet_policy_file.cpp191 uint32_t chainType = CommonUtils::StrToUint(firewallRulesItemStr); in ParseFirewallRule() local
200 netPolicy.netFirewallRules[chainType].deniedList.insert(deniedListNumber); in ParseFirewallRule()
208 netPolicy.netFirewallRules[chainType].allowedList.insert(allowedListNumber); in ParseFirewallRule()
483 int32_t NetPolicyFile::ReadFirewallRules(uint32_t chainType, std::set<uint32_t> &allowedList, in ReadFirewallRules() argument
486 auto &&w = netPolicy_.netFirewallRules[chainType].allowedList; in ReadFirewallRules()
487 auto &&b = netPolicy_.netFirewallRules[chainType].deniedList; in ReadFirewallRules()
493 void NetPolicyFile::WriteFirewallRules(uint32_t chainType, const std::set<uint32_t> &allowedList, in WriteFirewallRules() argument
496 netPolicy_.netFirewallRules[chainType].allowedList.clear(); in WriteFirewallRules()
497 netPolicy_.netFirewallRules[chainType].deniedList.clear(); in WriteFirewallRules()
498 … netPolicy_.netFirewallRules[chainType].allowedList.insert(allowedList.begin(), allowedList.end()); in WriteFirewallRules()
[all …]
H A Dnet_policy_firewall.cpp78 void NetPolicyFirewall::UpdateFirewallPolicyList(uint32_t chainType, const std::vector<uint32_t> &u… in UpdateFirewallPolicyList() argument
81 if (chainType == FIREWALL_CHAIN_DEVICE_IDLE) { in UpdateFirewallPolicyList()
89 if (chainType == FIREWALL_CHAIN_POWER_SAVE) { in UpdateFirewallPolicyList()
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/
H A Dnet_manager_native.cpp429 auto chainType = static_cast<NetManagerStandard::ChainType>(chain); in FirewallSetUidsAllowedListChain() local
430 return firewallManager_->SetUidsAllowedListChain(chainType, uids); in FirewallSetUidsAllowedListChain()
435 auto chainType = static_cast<NetManagerStandard::ChainType>(chain); in FirewallSetUidsDeniedListChain() local
436 return firewallManager_->SetUidsDeniedListChain(chainType, uids); in FirewallSetUidsDeniedListChain()
441 auto chainType = static_cast<NetManagerStandard::ChainType>(chain); in FirewallEnableChain() local
442 return firewallManager_->EnableChain(chainType, enable); in FirewallEnableChain()
447 auto chainType = static_cast<NetManagerStandard::ChainType>(chain); in FirewallSetUidRule() local
450 auto ret = firewallManager_->SetUidRule(chainType, uid, rule); in FirewallSetUidRule()
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/include/
H A Dnet_policy_file.h120 …int32_t ReadFirewallRules(uint32_t chainType, std::set<uint32_t> &allowedList, std::set<uint32_t> …
129 void WriteFirewallRules(uint32_t chainType, const std::set<uint32_t> &allowedList,
H A Dnet_policy_firewall.h95 …void UpdateFirewallPolicyList(uint32_t chainType, const std::vector<uint32_t> &uids, bool isAllowe…
H A Dfirewall_rule.h143 explicit FirewallRule(uint32_t chainType);
/ohos5.0/foundation/communication/netmanager_base/services/netpolicymanager/src/firewall_rule/
H A Dfirewall_rule.cpp37 FirewallRule::FirewallRule(uint32_t chainType) in FirewallRule() argument
39 chainType_ = chainType; in FirewallRule()