Home
last modified time | relevance | path

Searched refs:permissions (Results 1 – 25 of 3792) sorted by relevance

12345678910>>...152

/base/customization/enterprise_device_management/test/unittest/src/
Dadmin_manager_test.cpp66 std::vector<std::string> permissions; variable
68permissions = {"ohos.permission.EDM_TEST_PERMISSION_FAIL", "ohos.permission.EDM_TEST_PERMISSION"};
69 adminMgr_->GetReqPermission(permissions, reqPermission);
72permissions = {"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);
89permissions = {"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 …]
Denterprise_device_mgr_ability_test.cpp101 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 …]
Dutils.cpp45 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/
Dpms_impl.c232 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/
Dtoken_callback_test.cpp48 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/
Denterprise_device_mgr_ability_test.cpp322 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/
Dadmin_policies_storage_rdb.h32 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);
Dadmin_manager.h35 …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,
Dpermission_manager.h40 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/
Dpermission_manager.cpp55 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()
Dadmin_manager.cpp56 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 …]
Dadmin_policies_storage_rdb.cpp62 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/
Dappspawn_mount_permission.cpp34 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/
Dcommon_event_test.cpp80 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/
Dhilogd.cfg29 "permissions" : "0222",
40 "permissions" : "0666",
51 "permissions" : "0660",
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/
Dpublishcommonevent_fuzzer.cpp37 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/
Dpms.h27 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/
Dpublishcommoneventasuser_fuzzer.cpp38 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/
Dmatchingskills_fuzzer.cpp56 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/
Dticket_verify.cpp147 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/
Dcommoneventsubscriber_fuzzer.cpp53 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/
Dcommoneventmanagerservice_fuzzer.cpp47 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/
Dcommoneventstub_fuzzer.cpp50 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/
Dfaultloggerd.cfg24 "permissions" : "0666",
35 "permissions" : "0666",
/base/security/access_token/interfaces/innerkits/nativetoken/test/unittest/src/
Dnativetoken_oper_test.cpp75 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":[]})";

12345678910>>...152