Searched refs:permission (Results 1 - 25 of 25) sorted by relevance

/system/netd/include/
H A DPermission.h21 // the permission the app (UID) has been granted. When applied to a network, it's the permission an
22 // app must hold to be allowed to use the network. PERMISSION_NONE means "no special permission is
23 // held by the app" or "no special permission is required to use the network".
28 // android.permission.INTERNET framework permission.
31 // such as those that hold the android.permission.CHANGE_NETWORK_STATE framework permission.
34 // partition, those that hold the android.permission.CONNECTIVITY_INTERNAL framework permission an
42 permissionToName(Permission permission) argument
[all...]
H A DFwmark.h30 Permission permission : 2; member in struct:Fwmark::__anon1911
/system/netd/server/
H A DPhysicalNetwork.cpp31 Permission permission, PhysicalNetwork::Delegate* delegate) {
32 if (int ret = RouteController::addInterfaceToDefaultNetwork(interface.c_str(), permission)) {
36 if (int ret = delegate->addFallthrough(interface, permission)) {
43 Permission permission,
46 permission)) {
50 if (int ret = delegate->removeFallthrough(interface, permission)) {
72 int PhysicalNetwork::destroySocketsLackingPermission(Permission permission) { argument
73 if (permission == PERMISSION_NONE) return 0;
77 ALOGE("Error closing sockets for netId %d permission change", mNetId);
80 if (int ret = sd.destroySocketsLackingPermission(mNetId, permission,
30 addToDefault(unsigned netId, const std::string& interface, Permission permission, PhysicalNetwork::Delegate* delegate) argument
42 removeFromDefault(unsigned netId, const std::string& interface, Permission permission, PhysicalNetwork::Delegate* delegate) argument
101 setPermission(Permission permission) argument
[all...]
H A DPhysicalNetwork.h33 Permission permission) WARN_UNUSED_RESULT = 0;
35 Permission permission) WARN_UNUSED_RESULT = 0;
43 int setPermission(Permission permission) WARN_UNUSED_RESULT;
52 int destroySocketsLackingPermission(Permission permission);
H A DRouteController.h52 Permission permission) WARN_UNUSED_RESULT;
54 Permission permission) WARN_UNUSED_RESULT;
76 Permission permission) WARN_UNUSED_RESULT;
78 Permission permission) WARN_UNUSED_RESULT;
93 Permission permission) WARN_UNUSED_RESULT;
95 Permission permission) WARN_UNUSED_RESULT;
110 Permission permission, bool add);
H A DFwmarkServer.cpp91 Permission permission = mNetworkController->getPermissionForUser(client->getUid()); local
94 if ((permission & PERMISSION_SYSTEM) != PERMISSION_SYSTEM) {
120 permission = static_cast<Permission>(permission | fwmark.permission);
204 permission = PERMISSION_NONE;
230 permission = static_cast<Permission>(permission | fwmark.permission);
235 if ((permission
[all...]
H A DRouteController.cpp432 Permission permission, bool add) {
438 fwmark.permission = permission;
502 fwmark.permission = PERMISSION_SYSTEM;
503 mask.permission = PERMISSION_SYSTEM;
519 Permission permission, uid_t uidStart,
530 fwmark.permission = permission;
531 mask.permission = permission;
431 modifyIncomingPacketMark(unsigned netId, const char* interface, Permission permission, bool add) argument
518 modifyExplicitNetworkRule(unsigned netId, uint32_t table, Permission permission, uid_t uidStart, uid_t uidEnd, bool add) argument
541 modifyOutputInterfaceRules(const char* interface, uint32_t table, Permission permission, uid_t uidStart, uid_t uidEnd, bool add) argument
591 modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, const char* physicalInterface, Permission permission) argument
724 modifyPhysicalNetwork(unsigned netId, const char* interface, Permission permission, bool add) argument
826 modifyDefaultNetwork(uint16_t action, const char* interface, Permission permission) argument
981 addInterfaceToPhysicalNetwork(unsigned netId, const char* interface, Permission permission) argument
990 removeInterfaceFromPhysicalNetwork(unsigned netId, const char* interface, Permission permission) argument
1058 addInterfaceToDefaultNetwork(const char* interface, Permission permission) argument
1062 removeInterfaceFromDefaultNetwork(const char* interface, Permission permission) argument
1085 addVirtualNetworkFallthrough(unsigned vpnNetId, const char* physicalInterface, Permission permission) argument
1090 removeVirtualNetworkFallthrough(unsigned vpnNetId, const char* physicalInterface, Permission permission) argument
[all...]
H A DNetworkController.cpp76 Permission permission, bool add) WARN_UNUSED_RESULT;
80 Permission permission) override WARN_UNUSED_RESULT;
82 Permission permission) override WARN_UNUSED_RESULT;
84 int modifyFallthrough(const std::string& physicalInterface, Permission permission,
99 Permission permission, bool add) {
103 permission)) {
111 permission)) {
121 Permission permission) {
122 return modifyFallthrough(physicalInterface, permission, true);
126 Permission permission) {
97 modifyFallthrough(unsigned vpnNetId, const std::string& physicalInterface, Permission permission, bool add) argument
120 addFallthrough(const std::string& physicalInterface, Permission permission) argument
125 removeFallthrough(const std::string& physicalInterface, Permission permission) argument
130 modifyFallthrough(const std::string& physicalInterface, Permission permission, bool add) argument
324 createPhysicalNetworkLocked(unsigned netId, Permission permission) argument
347 createPhysicalNetwork(unsigned netId, Permission permission) argument
352 createPhysicalOemNetwork(Permission permission, unsigned *pNetId) argument
469 setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids) argument
482 setPermissionForNetworks(Permission permission, const std::vector<unsigned>& netIds) argument
583 Permission permission = reinterpret_cast<PhysicalNetwork*>(network)->getPermission(); local
704 Permission permission = static_cast<PhysicalNetwork*>(network)->getPermission(); local
[all...]
H A DNetdHwService.cpp68 Permission permission = PERMISSION_SYSTEM; local
71 int ret = gCtls->netCtrl.createPhysicalOemNetwork(permission, &netId);
77 fwmark.permission = PERMISSION_SYSTEM;
H A DNetworkController.h100 int createPhysicalNetwork(unsigned netId, Permission permission) WARN_UNUSED_RESULT;
101 int createPhysicalOemNetwork(Permission permission, unsigned *netId) WARN_UNUSED_RESULT;
109 void setPermissionForUsers(Permission permission, const std::vector<uid_t>& uids);
111 int setPermissionForNetworks(Permission permission,
140 int createPhysicalNetworkLocked(unsigned netId, Permission permission) WARN_UNUSED_RESULT;
H A DNetdNativeService.cpp50 const char CONNECTIVITY_INTERNAL[] = "android.permission.CONNECTIVITY_INTERNAL";
51 const char NETWORK_STACK[] = "android.permission.NETWORK_STACK";
52 const char DUMP[] = "android.permission.DUMP";
61 binder::Status checkPermission(const char *permission) { argument
65 if (checkCallingPermission(String16(permission), (int32_t *) &pid, (int32_t *) &uid)) {
68 auto err = StringPrintf("UID %d / PID %d lacks permission %s", uid, pid, permission);
94 #define ENFORCE_PERMISSION(permission) { \
95 binder::Status status = checkPermission((permission)); \
101 #define NETD_LOCKING_RPC(permission, loc
[all...]
H A DClatdController.cpp78 fwmark.permission = PERMISSION_SYSTEM;
H A DSockDiag.h72 int destroySocketsLackingPermission(unsigned netId, Permission permission,
H A DSockDiagTest.cpp290 Permission permission; member in struct:android::net::__anon1942
357 fwmark.permission = permissionTestcases[i].permission;
424 Permission permission = permissionTestcases[i].permission;
425 return permission != PERMISSION_NETWORK && permission != PERMISSION_SYSTEM;
H A DSockDiag.cpp389 // 1. The opening app no longer has permission to use this network, or:
390 // 2. The opening app does have permission, but did not explicitly select this network.
397 int SockDiag::destroySocketsLackingPermission(unsigned netId, Permission permission, argument
413 controlMark.permission = permission;
434 // If explicit and permission bits match, go to the JMP below which rejects the socket
468 if (int ret = destroyLiveSockets(shouldDestroy, "permission change", iov, ARRAY_SIZE(iov))) {
473 ALOGI("Destroyed %d sockets for netId %d permission=%d in %.1f ms",
474 mSocketsDestroyed, netId, permission, s.timeTaken());
H A DTetherController.cpp186 fwmark.permission = PERMISSION_SYSTEM;
261 fwmark.permission = PERMISSION_SYSTEM;
H A DCommandListener.cpp1409 // network create <netId> [permission]
1427 Permission permission = PERMISSION_NONE; local
1429 permission = stringToPermission(argv[3]);
1430 if (permission == PERMISSION_NONE) {
1431 return syntaxError(client, "Unknown permission");
1434 if (int ret = gCtls->netCtrl.createPhysicalNetwork(netId, permission)) {
1477 // network permission user set <permission> <uid> ...
1478 // network permission user clear <uid> ...
1479 // network permission networ
1486 Permission permission = PERMISSION_NONE; local
[all...]
/system/security/keystore/
H A Dkey_store_service.h155 * permission and if acting on other uids the grants to do so.
157 bool checkBinderPermission(perm_t permission, int32_t targetUid = UID_SELF);
161 * permission and the target uid is the caller or the caller is system.
163 bool checkBinderPermissionSelfOrSystem(perm_t permission, int32_t targetUid);
167 * permission or the target of the operation is the caller's uid. This is
168 * for operation where the permission is only for cross-uid activity and all
172 bool checkBinderPermissionOrSelfTarget(perm_t permission, int32_t targetUid);
175 * Helper method to check that the caller has the required permission as
178 * Returns NO_ERROR on success, PERMISSION_DENIED on a permission error and
182 KeyStoreServiceReturnCode checkBinderPermissionAndKeystoreState(perm_t permission,
[all...]
H A Dkey_store_service.cpp553 ALOGW("permission denied for %d: getmtime", targetUid);
587 ALOGW("permission denied for %d: duplicate", callingUid);
1348 ALOGW("addAuthToken: permission denied for %d", IPCThreadState::self()->getCallingUid());
1462 sp<IBinder> binder = defaultServiceManager()->getService(String16("permission"));
1467 String16("android.permission.READ_PRIVILEGED_PHONE_STATE"),
1530 // TODO(tuckeris): add permission check. This should be callable from ClockworkHome only.
1565 * permission and if acting on other uids the grants to do so.
1567 bool KeyStoreService::checkBinderPermission(perm_t permission, int32_t targetUid) { argument
1570 if (!has_permission(callingUid, permission, spid)) {
1571 ALOGW("permission
1585 checkBinderPermissionSelfOrSystem(perm_t permission, int32_t targetUid) argument
1602 checkBinderPermissionOrSelfTarget(perm_t permission, int32_t targetUid) argument
1620 checkBinderPermissionAndKeystoreState(perm_t permission, int32_t targetUid, bool checkUnlocked) argument
[all...]
/system/bt/stack/gatt/
H A Dgatt_db.cc85 tGATT_PERM perm = attr.permission;
172 attr16.uuid.uu.uuid16, attr16.permission, sec_flag, offset,
360 * perm: permission (authentication and key size requirements)
432 * perm: characteristic descriptor permission type.
562 tGATT_PERM perm = p_attr->permission;
567 VLOG(1) << StringPrintf("%s: p_attr->permission =0x%04x min_key_size==0x%04x",
568 __func__, p_attr->permission, min_key_size);
728 attr.permission = perm;
H A Dgatt_int.h171 tGATT_PERM permission; member in struct:__anon909
/system/nfc/halimpl/bcm2079x/gki/common/
H A Dgki_buffer.c1093 ** permission - (input) GKI_PUBLIC_POOL or
1100 uint8_t GKI_set_pool_permission(uint8_t pool_id, uint8_t permission) { argument
1104 if (permission == GKI_RESTRICTED_POOL)
1344 ** permission - (input) restricted or public access?
1355 uint8_t GKI_create_pool(uint16_t size, uint16_t count, uint8_t permission, argument
1384 (void)GKI_set_pool_permission(xx, permission);
/system/nfc/src/gki/common/
H A Dgki_buffer.c896 ** permission - (input) GKI_PUBLIC_POOL or GKI_RESTRICTED_POOL
902 uint8_t GKI_set_pool_permission(uint8_t pool_id, uint8_t permission) { argument
906 if (permission == GKI_RESTRICTED_POOL)
1143 ** permission - (input) restricted or public access?
1153 uint8_t GKI_create_pool(uint16_t size, uint16_t count, uint8_t permission, argument
1182 (void)GKI_set_pool_permission(xx, permission);
/system/netd/server/dns/
H A DDnsTlsTransport.cpp390 fwmark.permission = PERMISSION_SYSTEM;
/system/tpm/tpm_manager/server/
H A Dtpm_nvram_impl.cc435 MapAttributesFromTpm(info.permission.attributes, attributes);

Completed in 293 milliseconds