OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:UidRanges
(Results
1 - 14
of
14
) sorted by null
/system/netd/server/
UidRanges.h
26
class
UidRanges
{
33
UidRanges
() {}
34
UidRanges
(const std::vector<android::net::UidRange>& ranges);
42
void add(const
UidRanges
& other);
43
void remove(const
UidRanges
& other);
RouteController.h
25
class
UidRanges
;
51
const
UidRanges
&
uidRanges
) WARN_UNUSED_RESULT;
53
const
UidRanges
&
uidRanges
) WARN_UNUSED_RESULT;
60
const
UidRanges
&
uidRanges
) WARN_UNUSED_RESULT;
62
const
UidRanges
&
uidRanges
) WARN_UNUSED_RESULT;
64
static int addUsersToRejectNonSecureNetworkRule(const
UidRanges
& uidRanges
[
all
...]
VirtualNetwork.h
23
#include "
UidRanges
.h"
41
int addUsers(const
UidRanges
&
uidRanges
,
43
int removeUsers(const
UidRanges
&
uidRanges
,
50
int maybeCloseSockets(bool add, const
UidRanges
&
uidRanges
,
55
UidRanges
mUidRanges;
UidRanges.cpp
17
#include "
UidRanges
.h"
27
bool
UidRanges
::hasUid(uid_t uid) const {
33
const std::vector<
UidRanges
::Range>&
UidRanges
::getRanges() const {
37
bool
UidRanges
::parseFrom(int argc, char* argv[]) {
78
UidRanges
::
UidRanges
(const std::vector<android::net::UidRange>& ranges) {
87
void
UidRanges
::add(const
UidRanges
& other) {
92
void
UidRanges
::remove(const UidRanges& other)
[
all
...]
NetworkController.h
33
class
UidRanges
;
77
int addUsersToNetwork(unsigned netId, const
UidRanges
&
uidRanges
) WARN_UNUSED_RESULT;
78
int removeUsersFromNetwork(unsigned netId, const
UidRanges
&
uidRanges
) WARN_UNUSED_RESULT;
VirtualNetwork.cpp
46
int VirtualNetwork::maybeCloseSockets(bool add, const
UidRanges
&
uidRanges
,
57
if (int ret = sd.destroySockets(
uidRanges
, protectableUsers, true /* excludeLoopback */)) {
59
add ? "adding" : "removing",
uidRanges
.toString().c_str(), mNetId, strerror(-ret));
66
int VirtualNetwork::addUsers(const
UidRanges
&
uidRanges
, const std::set<uid_t>& protectableUsers) {
67
maybeCloseSockets(true,
uidRanges
, protectableUsers);
71
uidRanges
)) {
76
mUidRanges.add(
uidRanges
);
80
int VirtualNetwork::removeUsers(const
UidRanges
& uidRanges
[
all
...]
SockDiag.h
28
#include "
UidRanges
.h"
60
int destroySockets(const
UidRanges
&
uidRanges
, const std::set<uid_t>& skipUids,
RouteController.cpp
31
#include "
UidRanges
.h"
772
WARN_UNUSED_RESULT int modifyRejectNonSecureNetworkRule(const
UidRanges
&
uidRanges
, bool add) {
778
for (const
UidRanges
::Range& range :
uidRanges
.getRanges()) {
791
const
UidRanges
&
uidRanges
, bool secure, bool add,
798
for (const
UidRanges
::Range& range :
uidRanges
.getRanges()) {
[
all
...]
Android.mk
103
UidRanges
.cpp \
146
UidRanges
.cpp \
NetdNativeService.cpp
37
#include "
UidRanges
.h"
140
UidRanges
uidRanges
(uidRangeArray);
144
err = RouteController::addUsersToRejectNonSecureNetworkRule(
uidRanges
);
146
err = RouteController::removeUsersFromRejectNonSecureNetworkRule(
uidRanges
);
167
UidRanges
uidRanges
(uids);
168
int err = sd.destroySockets(
uidRanges
, std::set<uid_t>(skipUids.begin(), skipUids.end()),
NetworkController.cpp
463
int NetworkController::addUsersToNetwork(unsigned netId, const
UidRanges
&
uidRanges
) {
474
if (int ret = static_cast<VirtualNetwork*>(network)->addUsers(
uidRanges
, mProtectableUsers)) {
480
int NetworkController::removeUsersFromNetwork(unsigned netId, const
UidRanges
&
uidRanges
) {
491
if (int ret = static_cast<VirtualNetwork*>(network)->removeUsers(
uidRanges
,
SockDiag.cpp
373
int SockDiag::destroySockets(const
UidRanges
&
uidRanges
, const std::set<uid_t>& skipUids,
380
uidRanges
.hasUid(msg->idiag_uid) &&
401
mSocketsDestroyed,
uidRanges
.toString().c_str(),
SockDiagTest.cpp
31
#include "
UidRanges
.h"
397
UidRanges
uidRanges
;
398
uidRanges
.parseFrom(ARRAY_SIZE(uidRangeStrings), (char **) uidRangeStrings);
399
ret = mSd.destroySockets(
uidRanges
, skipUids, excludeLoopback);
423
// Include UIDs in
uidRanges
.
CommandListener.cpp
50
#include "
UidRanges
.h"
[
all
...]
Completed in 257 milliseconds