Lines Matching refs:uidRanges
49 int VirtualNetwork::maybeCloseSockets(bool add, const UidRanges& uidRanges, in maybeCloseSockets() argument
60 if (int ret = sd.destroySockets(uidRanges, protectableUsers, true /* excludeLoopback */)) { in maybeCloseSockets()
62 add ? "adding" : "removing", uidRanges.toString().c_str(), mNetId, strerror(-ret)); in maybeCloseSockets()
69 int VirtualNetwork::addUsers(const UidRanges& uidRanges, const std::set<uid_t>& protectableUsers) { in addUsers() argument
70 maybeCloseSockets(true, uidRanges, protectableUsers); in addUsers()
74 uidRanges)) { in addUsers()
79 mUidRanges.add(uidRanges); in addUsers()
83 int VirtualNetwork::removeUsers(const UidRanges& uidRanges, in removeUsers() argument
85 maybeCloseSockets(false, uidRanges, protectableUsers); in removeUsers()
89 mSecure, uidRanges)) { in removeUsers()
94 mUidRanges.remove(uidRanges); in removeUsers()