/system/netd/server/ |
D | FirewallController.cpp | 256 bool isWhitelist, const std::vector<int32_t>& uids) { in makeUidRules() argument 262 for (auto uid : uids) { in makeUidRules() 285 for (auto uid : uids) { in makeUidRules() 302 const char *name, bool isWhitelist, const std::vector<int32_t>& uids) { in replaceUidChain() argument 303 std::string commands4 = makeUidRules(V4, name, isWhitelist, uids); in replaceUidChain() 304 std::string commands6 = makeUidRules(V6, name, isWhitelist, uids); in replaceUidChain()
|
D | FirewallControllerTest.cpp | 178 std::vector<int32_t> uids = { 10023, 10059, 10124, 10111, 110122, 210153, 210024 }; in TEST_F() local 179 EXPECT_EQ(expected, makeUidRules(V6, "FW_whitechain", true, uids)); in TEST_F() 194 std::vector<int32_t> uids = { 10023, 10059, 10124 }; in TEST_F() local 195 EXPECT_EQ(expected, makeUidRules(V4 ,"FW_blackchain", false, uids)); in TEST_F()
|
D | NetworkController.h | 109 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids); 128 void allowProtect(const std::vector<uid_t>& uids); 129 void denyProtect(const std::vector<uid_t>& uids);
|
D | NetdNativeService.h | 39 const std::vector<int32_t>& uids, bool *ret) override; 41 binder::Status networkRejectNonSecureVpn(bool enable, const std::vector<UidRange>& uids) 43 binder::Status socketDestroy(const std::vector<UidRange>& uids,
|
D | NetworkController.cpp | 470 const std::vector<uid_t>& uids) { in setPermissionForUsers() argument 472 for (uid_t uid : uids) { in setPermissionForUsers() 554 void NetworkController::allowProtect(const std::vector<uid_t>& uids) { in allowProtect() argument 556 mProtectableUsers.insert(uids.begin(), uids.end()); in allowProtect() 559 void NetworkController::denyProtect(const std::vector<uid_t>& uids) { in denyProtect() argument 561 for (uid_t uid : uids) { in denyProtect()
|
D | FirewallController.h | 86 const std::vector<int32_t>& uids);
|
D | NetdNativeService.cpp | 147 bool isWhitelist, const std::vector<int32_t>& uids, bool *ret) { in firewallReplaceUidChain() argument 151 int err = gCtls->firewallCtrl.replaceUidChain(name.string(), isWhitelist, uids); in firewallReplaceUidChain() 189 binder::Status NetdNativeService::socketDestroy(const std::vector<UidRange>& uids, in socketDestroy() argument 200 UidRanges uidRanges(uids); in socketDestroy()
|
D | CommandListener.cpp | 1565 std::vector<uid_t> uids; in runCommand() local 1567 uids.push_back(strtoul(argv[i], NULL, 0)); in runCommand() 1570 gCtls->netCtrl.allowProtect(uids); in runCommand() 1572 gCtls->netCtrl.denyProtect(uids); in runCommand()
|
/system/core/storaged/include/ |
D | storaged_utils.h | 35 void sort_running_uids_info(std::vector<struct uid_info> &uids); 38 void log_console_running_uids_info(std::vector<struct uid_info> uids);
|
/system/core/storaged/ |
D | storaged_utils.cpp | 180 void sort_running_uids_info(std::vector<struct uid_info> &uids) { in sort_running_uids_info() argument 181 std::sort(uids.begin(), uids.end(), cmp_uid_info); in sort_running_uids_info() 185 void log_console_running_uids_info(std::vector<struct uid_info> uids) { in log_console_running_uids_info() argument 189 for (const auto& uid : uids) { in log_console_running_uids_info()
|
D | storaged_uid_monitor.cpp | 50 static void get_uid_names(const vector<int>& uids, const vector<std::string*>& uid_names) in get_uid_names() argument 66 binder::Status status = package_mgr->getNamesForUids(uids, &names); in get_uid_names() 93 vector<int> uids; in get_uid_io_stats_locked() local 120 uids.push_back(u.uid); in get_uid_io_stats_locked() 129 if (!uids.empty() && refresh_uid_names) { in get_uid_io_stats_locked() 130 get_uid_names(uids, uid_names); in get_uid_io_stats_locked()
|
/system/netd/tests/ |
D | binder_test.cpp | 165 std::vector<int32_t> uids(kNumUids); in TEST_F() local 167 uids[i] = randomUid(); in TEST_F() 173 mNetd->firewallReplaceUidChain(String16(chainName.c_str()), true, uids, &ret); in TEST_F() 176 EXPECT_EQ((int) uids.size() + 7, iptablesRuleLineLength(IPTABLES_PATH, chainName.c_str())); in TEST_F() 177 EXPECT_EQ((int) uids.size() + 13, iptablesRuleLineLength(IP6TABLES_PATH, chainName.c_str())); in TEST_F() 188 mNetd->firewallReplaceUidChain(String16(chainName.c_str()), false, uids, &ret); in TEST_F() 191 EXPECT_EQ((int) uids.size() + 5, iptablesRuleLineLength(IPTABLES_PATH, chainName.c_str())); in TEST_F() 192 EXPECT_EQ((int) uids.size() + 5, iptablesRuleLineLength(IP6TABLES_PATH, chainName.c_str())); in TEST_F()
|
/system/netd/server/binder/android/net/ |
D | INetd.aidl | 41 boolean firewallReplaceUidChain(String chainName, boolean isWhitelist, in int[] uids); in firewallReplaceUidChain() argument
|
/system/sepolicy/private/ |
D | seapp_contexts | 85 # neverallow non-isolated uids into isolated_app domain
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | seapp_contexts | 85 # neverallow non-isolated uids into isolated_app domain
|