/base/customization/enterprise_device_management/test/unittest/src/ |
D | admin_manager_test.cpp | 66 std::vector<std::string> permissions; variable 68 … permissions = {"ohos.permission.EDM_TEST_PERMISSION_FAIL", "ohos.permission.EDM_TEST_PERMISSION"}; 69 adminMgr_->GetReqPermission(permissions, reqPermission); 72 … permissions = {"ohos.permission.EDM_TEST_PERMISSION_FAIL", "ohos.permission.EDM_TEST_PERMISSION", 74 adminMgr_->GetReqPermission(permissions, reqPermission); 85 std::vector<std::string> permissions; variable 86 ErrCode res = adminMgr_->GetGrantedPermission(permissions, AdminType::NORMAL); 89 … permissions = {"ohos.permission.EDM_TEST_PERMISSION_FAIL", "ohos.permission.EDM_TEST_PERMISSION"}; 90 res = adminMgr_->GetGrantedPermission(permissions, AdminType::NORMAL); 92 ASSERT_TRUE(permissions.size() == 1); [all …]
|
D | enterprise_device_mgr_ability_test.cpp | 101 const char* permissions[] = {EDM_MANAGE_DATETIME_PERMISSION.c_str()}; variable 102 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); 123 const char* permissions[] = {EDM_MANAGE_DATETIME_PERMISSION.c_str()}; variable 124 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); 238 const char* permissions[] = {EDM_MANAGE_DATETIME_PERMISSION.c_str()}; variable 239 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); 266 const char* permissions[] = {EDM_MANAGE_DATETIME_PERMISSION.c_str()}; variable 267 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); 307 const char* permissions[] = {EDM_MANAGE_DATETIME_PERMISSION.c_str()}; variable 308 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); [all …]
|
D | utils.cpp | 45 void Utils::SetNativeTokenTypeAndPermissions(const char* permissions[], int size) in SetNativeTokenTypeAndPermissions() argument 53 .perms = permissions, in SetNativeTokenTypeAndPermissions() 69 const char* permissions[] = { in SetEdmInitialEnv() local 82 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); in SetEdmInitialEnv()
|
/base/security/permission_lite/services/pms/src/ |
D | pms_impl.c | 232 static int SavePermissions(const char *identifier, const PermissionSaved *permissions, int permNum) in SavePermissions() argument 234 if (identifier == NULL || permissions == NULL) { in SavePermissions() 255 cJSON_AddItemToObject(object, FIELD_NAME, cJSON_CreateString(permissions[i].name)); in SavePermissions() 256 cJSON_AddItemToObject(object, FIELD_DESC, cJSON_CreateString(permissions[i].desc)); in SavePermissions() 257 cJSON_AddItemToObject(object, FIELD_IS_GRANTED, cJSON_CreateBool(permissions[i].granted)); in SavePermissions() 265 if (sprintf_s(buf, BUFF_PARAM_SIZE, "%d", permissions[i].flags) < 0) { in SavePermissions() 316 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum) in QueryPermission() argument 324 int ret = ParsePermissions(jsonStr, permissions, permNum); in QueryPermission() 334 PermissionSaved *permissions = NULL; in QueryAppCapabilities() local 336 int ret = QueryPermission(identifier, &permissions, &permNum); in QueryAppCapabilities() [all …]
|
/base/security/access_token/interfaces/innerkits/token_callback/test/unittest/src/ |
D | token_callback_test.cpp | 48 const std::vector<std::string> &permissions, const std::vector<int> &grantResults) in GrantResultsCallback() argument 50 GTEST_LOG_(INFO) << "GrantResultsCallback, permissions.size:" << permissions.size() << in GrantResultsCallback() 63 std::vector<std::string> permissions; variable 65 uint32_t listSize = permissions.size(); 74 ASSERT_EQ(true, data.WriteString16(Str8ToStr16(permissions[i]))); 96 std::vector<std::string> permissions; variable 98 permissions.emplace_back("ohos.permission.CAMERA"); 100 uint32_t listSize = permissions.size(); 109 ASSERT_EQ(true, data.WriteString16(Str8ToStr16(permissions[i])));
|
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_ability/enterprise_device_mgr_ability_test/ |
D | enterprise_device_mgr_ability_test.cpp | 322 const char* permissions[] = {PERMISSION_MANAGE_ENTERPRISE_DEVICE_ADMIN_TEST.c_str()}; variable 323 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); 336 const char* permissions[] = {PERMISSION_MANAGE_ENTERPRISE_DEVICE_ADMIN_TEST.c_str()}; variable 337 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); 392 const char* permissions[] = {PERMISSION_MANAGE_ENTERPRISE_DEVICE_ADMIN_TEST.c_str()}; variable 393 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); 418 const char* permissions[] = {PERMISSION_MANAGE_ENTERPRISE_DEVICE_ADMIN_TEST.c_str()}; variable 419 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); 444 const char* permissions[] = {PERMISSION_MANAGE_ENTERPRISE_DEVICE_ADMIN_TEST.c_str()}; variable 445 …Utils::SetNativeTokenTypeAndPermissions(permissions, sizeof(permissions) / sizeof(permissions[0])); [all …]
|
/base/customization/enterprise_device_management/services/edm/include/ |
D | admin_policies_storage_rdb.h | 32 AdminType role, const std::vector<std::string> &permissions); 34 AdminType role, const std::vector<std::string> &permissions); 37 const std::vector<std::string> &permissions); 42 …l InsertAuthorizedAdmin(const std::string &bundleName, const std::vector<std::string> &permissions, 44 …l UpdateAuthorizedAdmin(const std::string &bundleName, const std::vector<std::string> &permissions, 49 const EntInfo &entInfo, AdminType role, const std::vector<std::string> &permissions);
|
D | admin_manager.h | 35 …ErrCode GetReqPermission(const std::vector<std::string> &permissions, std::vector<EdmPermission> &… 41 …teAdmin(AppExecFwk::ExtensionAbilityInfo &abilityInfo, const std::vector<std::string> &permissions, 43 ErrCode GetGrantedPermission(std::vector<std::string> &permissions, AdminType type); 50 std::vector<std::string> &permissions, int32_t userId); 55 …ode SaveAuthorizedAdmin(const std::string &bundleName, const std::vector<std::string> &permissions,
|
D | permission_manager.h | 40 void GetReqPermission(const std::vector<std::string> &permissions, 42 void GetReqPermission(const std::vector<std::string> &permissions,
|
/base/customization/enterprise_device_management/services/edm/src/ |
D | permission_manager.cpp | 55 void PermissionManager::GetReqPermission(const std::vector<std::string> &permissions, in GetReqPermission() argument 59 if (permissions.empty()) { in GetReqPermission() 63 for (const auto &item : permissions) { in GetReqPermission() 71 void PermissionManager::GetReqPermission(const std::vector<std::string> &permissions, in GetReqPermission() argument 75 for (const auto &item : permissions) { in GetReqPermission()
|
D | admin_manager.cpp | 56 ErrCode AdminManager::GetReqPermission(const std::vector<std::string> &permissions, in GetReqPermission() argument 60 PermissionManager::GetInstance()->GetReqPermission(permissions, reqPermissions); in GetReqPermission() 94 std::vector<std::string> &permissions, int32_t userId) in SetAdminValue() argument 104 PermissionManager::GetInstance()->GetReqPermission(permissions, reqPermission); in SetAdminValue() 116 …inItem && !adminPoliciesStorageRdb->InsertAdmin(userId, abilityInfo, entInfo, role, permissions)) { in SetAdminValue() 119 …inItem && !adminPoliciesStorageRdb->UpdateAdmin(userId, abilityInfo, entInfo, role, permissions)) { in SetAdminValue() 191 ErrCode AdminManager::GetGrantedPermission(std::vector<std::string> &permissions, AdminType type) in GetGrantedPermission() argument 193 if (permissions.empty()) { in GetGrantedPermission() 199 PermissionManager::GetInstance()->GetReqPermission(permissions, reqPermission); in GetGrantedPermission() 213 permissions.assign(permissionNameList.begin(), permissionNameList.end()); in GetGrantedPermission() [all …]
|
D | admin_policies_storage_rdb.cpp | 62 const EntInfo &entInfo, AdminType role, const std::vector<std::string> &permissions) in InsertAdmin() argument 73 CreateValuesBucket(userId, abilityInfo, entInfo, role, permissions)); in InsertAdmin() 77 const EntInfo &entInfo, AdminType role, const std::vector<std::string> &permissions) in UpdateAdmin() argument 90 …taManager->Update(CreateValuesBucket(userId, abilityInfo, entInfo, role, permissions), predicates); in UpdateAdmin() 95 const std::vector<std::string> &permissions) in CreateValuesBucket() argument 105 if (!permissions.empty()) { in CreateValuesBucket() 109 for (const auto &it : permissions) { in CreateValuesBucket() 133 const std::vector<std::string> &permissions) in UpdateAdmin() argument 149 for (const auto &it : permissions) { in UpdateAdmin() 281 const std::vector<std::string> &permissions, const std::string &parentName) in InsertAuthorizedAdmin() argument [all …]
|
/base/startup/appspawn/interfaces/innerkits/src/ |
D | appspawn_mount_permission.cpp | 34 uint32_t AppspawnMountPermission::GenPermissionCode(const std::set<std::string> &permissions) in GenPermissionCode() argument 37 if (permissions.size() == 0) { in GenPermissionCode() 42 for (std::string inputPermission : permissions) { in GenPermissionCode()
|
/base/notification/common_event_service/frameworks/core/test/unittest/ |
D | common_event_test.cpp | 80 std::vector<std::string> permissions; variable 81 permissions.emplace_back(PERMISSION); 82 publishInfo.SetSubscriberPermissions(permissions); 111 std::vector<std::string> permissions; variable 112 permissions.emplace_back(PERMISSION); 113 publishInfo.SetSubscriberPermissions(permissions); 197 std::vector<std::string> permissions; variable 198 permissions.emplace_back(PERMISSION); 199 publishInfo.SetSubscriberPermissions(permissions); 227 std::vector<std::string> permissions; variable [all …]
|
/base/hiviewdfx/hilog/services/hilogd/etc/ |
D | hilogd.cfg | 29 "permissions" : "0222", 40 "permissions" : "0666", 51 "permissions" : "0660",
|
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/ |
D | publishcommonevent_fuzzer.cpp | 37 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 38 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 39 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/security/permission_lite/services/pms/include/ |
D | pms.h | 27 int SaveOrUpdatePermissions(const char *identifier, PermissionTrans permissions[], int permNum, enu… 45 int QueryPermission(const char *identifier, PermissionSaved **permissions, int *permNum);
|
/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/ |
D | publishcommoneventasuser_fuzzer.cpp | 38 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 39 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 40 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/test/fuzztest/matchingskills_fuzzer/ |
D | matchingskills_fuzzer.cpp | 56 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 57 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 58 matchingSkills.MatchEntity(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/security/appverify/interfaces/innerkits/appverify/src/ticket/ |
D | ticket_verify.cpp | 147 if (!ticketInfo.permissions.restrictedCapabilities.empty()) { in CompareTicketAndProfile() 148 if (!CheckPermissions(ticketInfo.permissions.restrictedCapabilities, in CompareTicketAndProfile() 149 profileInfo.permissions.restrictedCapabilities)) { in CompareTicketAndProfile() 155 if (!ticketInfo.permissions.restrictedPermissions.empty()) { in CompareTicketAndProfile() 156 if (!CheckPermissions(ticketInfo.permissions.restrictedPermissions, in CompareTicketAndProfile() 157 profileInfo.permissions.restrictedPermissions)) { in CompareTicketAndProfile()
|
/base/notification/common_event_service/test/fuzztest/commoneventsubscriber_fuzzer/ |
D | commoneventsubscriber_fuzzer.cpp | 53 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 54 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 55 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/test/fuzztest/commoneventmanagerservice_fuzzer/ |
D | commoneventmanagerservice_fuzzer.cpp | 47 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 48 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 49 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/notification/common_event_service/test/fuzztest/commoneventstub_fuzzer/ |
D | commoneventstub_fuzzer.cpp | 50 std::vector<std::string> permissions; in DoSomethingInterestingWithMyAPI() local 51 permissions.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 52 commonEventPublishInfo.SetSubscriberPermissions(permissions); in DoSomethingInterestingWithMyAPI()
|
/base/hiviewdfx/faultloggerd/services/config/ |
D | faultloggerd.cfg | 24 "permissions" : "0666", 35 "permissions" : "0666",
|
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/ |
D | nativetoken_oper_test.cpp | 75 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})"; 83 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})"; 95 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})"; 225 R"("dcaps":["AT_CAP","ST_CAP"], "permissions":[], "nativeAcls":[]})";
|