Home
last modified time | relevance | path

Searched refs:apl (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A Dhap_restorecon.cpp155 static bool CheckApl(const std::string &apl) in CheckApl() argument
157 if (apl == "system_core" || apl == "system_basic" || apl == "normal") { in CheckApl()
180 keyPara = hapInfo->apl; in GetHapContextKey()
202 keyPara = tmpInfo.apl + "."; in HapContextsInsert()
269 if (hapFileInfo.apl.empty() || hapFileInfo.pathNameOrig.empty() || !CheckApl(hapFileInfo.apl)) { in HapFileRestorecon()
285 if (hapFileInfo.apl.empty() || pathNameOrig.empty() || !CheckApl(hapFileInfo.apl)) { in HapFileRestorecon()
475 if (hapDomainInfo.apl.empty() || !CheckApl(hapDomainInfo.apl)) { in HapDomainSetcontext()
555 keyPara = apl + "." + DLPSANDBOX; in HapContextsLookup()
558 keyPara = apl + "." + packageName; in HapContextsLookup()
561 keyPara = apl + "." + DEBUGGABLE; in HapContextsLookup()
[all …]
/ohos5.0/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
H A Dapp_installation_optimized_test.cpp126 .apl = APL_NORMAL,
140 .apl = APL_NORMAL,
239 .apl = APL_NORMAL,
269 .apl = APL_NORMAL,
303 .apl = APL_NORMAL,
391 .apl = APL_NORMAL,
485 .apl = APL_NORMAL,
516 .apl = APL_NORMAL,
543 .apl = APL_NORMAL,
567 .apl = APL_NORMAL,
[all …]
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
H A Dnative_token_info_inner.cpp38 tokenInfoBasic_.apl = APL_NORMAL; in NativeTokenInfoInner()
65 if (!DataValidator::IsAplNumValid(tokenInfo.apl)) { in Init()
68 tokenInfoBasic_.tokenID, tokenInfo.apl); in Init()
71 tokenInfoBasic_.apl = static_cast<ATokenAplEnum>(tokenInfo.apl); in Init()
108 outGenericValues.Put(TokenFiledConst::FIELD_APL, tokenInfoBasic_.apl); in TranslationIntoGenericValues()
140 tokenInfoBasic_.apl = static_cast<ATokenAplEnum>(aplNum); in RestoreNativeTokenInfo()
162 infoParcel.apl = tokenInfoBasic_.apl; in TranslateToNativeTokenInfo()
274 info.append(R"( "apl": )" + std::to_string(tokenInfoBasic_.apl) + ",\n"); in ToString()
279 permPolicySet_->PermStateToString(tokenInfoBasic_.apl, tokenInfoBasic_.nativeAcls, info); in ToString()
H A Dhap_token_info_inner.cpp44 tokenInfoBasic_.apl = APL_NORMAL; in HapTokenInfoInner()
63 tokenInfoBasic_.apl = policy.apl; in HapTokenInfoInner()
90 const std::vector<PermissionStateFull>& permStateList, ATokenAplEnum apl) in Update() argument
94 tokenInfoBasic_.apl = apl; in Update()
125 outGenericValues.Put(TokenFiledConst::FIELD_APL, tokenInfoBasic_.apl); in TranslationIntoGenericValues()
163 tokenInfoBasic_.apl = static_cast<ATokenAplEnum>(aplNum); in RestoreHapTokenBasicInfo()
322 info.append(R"( "apl": )" + std::to_string(tokenInfoBasic_.apl) + ",\n"); in ToString()
/ohos5.0/base/security/access_token/services/accesstokenmanager/test/unittest/
H A Dnative_token_receptor_test.cpp286 .apl = APL_NORMAL,
301 ASSERT_EQ(findInfo.apl, info.apl);
366 ASSERT_EQ(findInfo.apl, info.apl);
418 ASSERT_EQ(findInfo.apl, info.apl); in CompareGoalTokenInfo()
525 .apl = APL_NORMAL,
534 .apl = APL_NORMAL,
553 ASSERT_EQ(findInfo.apl, info3.apl);
576 .apl = APL_NORMAL,
585 .apl = APL_NORMAL,
607 ASSERT_EQ(findInfo.apl, info6.apl);
[all …]
/ohos5.0/base/security/selinux_adapter/interfaces/tools/hap_restorecon/
H A Dtest.cpp37 std::string apl = ""; member
77 input.apl = optarg; in SetOptions()
137 .apl = testCmd.apl, in main()
146 .apl = testCmd.apl, in main()
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dhap_restorecon.h34 std::string apl = ""; member
44 std::string apl; member
51 std::string apl; member
70 int HapLabelLookup(const std::string &apl, const std::string &packageName,
73 int HapContextsLookup(bool isDomain, const std::string &apl, const std::string &packageName,
/ohos5.0/base/security/access_token/frameworks/accesstoken/src/
H A Dhap_token_info_parcel.cpp24 RETURN_IF_FALSE(out.WriteInt32(this->hapTokenInfoParams.apl)); in Marshalling()
45 int apl; in Unmarshalling() local
47 RELEASE_IF_FALSE(in.ReadInt32(apl), hapTokenInfoParcel); in Unmarshalling()
48 hapTokenInfoParcel->hapTokenInfoParams.apl = ATokenAplEnum(apl); in Unmarshalling()
H A Dnative_token_info_parcel.cpp29 RETURN_IF_FALSE(out.WriteInt32(this->nativeTokenInfoParams.apl)); in Marshalling()
65 int32_t apl; in Unmarshalling() local
67 RELEASE_IF_FALSE(in.ReadInt32(apl), nativeTokenInfoParcel); in Unmarshalling()
69 nativeTokenInfoParcel->nativeTokenInfoParams.apl = ATokenAplEnum(apl); in Unmarshalling()
H A Dhap_policy_parcel.cpp30 RETURN_IF_FALSE(out.WriteInt32(this->hapPolicyParameter.apl)); in Marshalling()
79 int32_t apl; in Unmarshalling() local
80 RELEASE_IF_FALSE(in.ReadInt32(apl), hapPolicyParcel); in Unmarshalling()
81 hapPolicyParcel->hapPolicyParameter.apl = ATokenAplEnum(apl); in Unmarshalling()
/ohos5.0/base/security/selinux_adapter/test/unittest/hap_restorecon/
H A Dunit_test.cpp75 .apl = SYSTEM_CORE_APL,
83 .apl = SYSTEM_CORE_APL,
91 .apl = "",
99 .apl = SYSTEM_CORE_APL,
107 .apl = INVALID_APL,
115 .apl = SYSTEM_CORE_APL,
123 .apl = SYSTEM_CORE_APL,
147 .apl = NORMAL_APL,
154 .apl = "",
160 .apl = INVALID_APL,
[all …]
/ohos5.0/base/security/selinux_adapter/sepolicy/base/public/
H A Dsehap_contexts14 apl=system_core domain=system_core_hap type=system_core_hap_data_file
15 apl=system_basic domain=system_basic_hap type=system_basic_hap_data_file
16 apl=normal domain=normal_hap type=normal_hap_data_file
17 apl=normal debuggable=true domain=debug_hap type=debug_hap_data_file
/ohos5.0/base/security/access_token/services/tokensyncmanager/src/command/
H A Dbase_remote_command.cpp114 {"apl", tokenInfo.baseInfo.apl}, in ToNativeTokenInfoJson()
166 {"apl", tokenInfo.baseInfo.apl}, in ToHapTokenInfosJson()
189 int apl = hapTokenJson.at("apl").get<int>(); in FromHapTokenBasicInfoJson() local
190 if (DataValidator::IsAplNumValid(apl)) { in FromHapTokenBasicInfoJson()
191 hapTokenBasicInfo.apl = static_cast<ATokenAplEnum>(apl); in FromHapTokenBasicInfoJson()
259 int apl = nativeTokenJson.at("apl").get<int>(); in FromNativeTokenInfoJson() local
260 if (DataValidator::IsAplNumValid(apl)) { in FromNativeTokenInfoJson()
261 nativeTokenInfo.baseInfo.apl = static_cast<ATokenAplEnum>(apl); in FromNativeTokenInfoJson()
/ohos5.0/base/startup/init/services/init/standard/
H A Dinit_service.c151 const char *apl = "system_basic"; in GetAccessToken() local
152 if (service->apl != NULL) { in GetAccessToken()
153 apl = service->apl; in GetAccessToken()
163 apl, in GetAccessToken()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/src/
H A Dnativetoken_json_oper.c73 int32_t apl = cJSON_GetNumberValue(aplJson); in GetAplFromJson() local
74 if (apl <= 0 || apl > SYSTEM_CORE) { in GetAplFromJson()
75 NativeTokenKmsg(NATIVETOKEN_KERROR, "[%s]:apl = %d in file is invalid.", __func__, apl); in GetAplFromJson()
78 tokenNode->apl = aplJson->valueint; in GetAplFromJson()
151 item = cJSON_CreateNumber(curr->apl); in SetNativeTokenJsonObject()
248 cJSON *itemApl = cJSON_CreateNumber(tokenNode->apl); in UpdateItemcontent()
H A Dnativetoken.c445 int32_t apl = GetAplLevel(tokenInfo->aplStr); in CheckProcessInfo() local
446 if (apl == 0) { in CheckProcessInfo()
449 *aplRet = apl; in CheckProcessInfo()
484 tokenNode->apl = aplIn; in AddNewTokenToListAndFile()
522 if (tokenNode->apl != aplIn) { in CompareTokenInfo()
578 tokenNode->apl = GetAplLevel(tokenInfo->aplStr); in UpdateTokenInfoInList()
638 int32_t apl; in GetAccessTokenId() local
644 uint32_t ret = CheckProcessInfo(tokenInfo, &apl); in GetAccessTokenId()
659 ret = AddNewTokenToListAndFile(tokenInfo, apl, &tokenId); in GetAccessTokenId()
661 … int32_t needTokenUpdate = CompareTokenInfo(tokenNode, tokenInfo->dcaps, tokenInfo->dcapsNum, apl); in GetAccessTokenId()
/ohos5.0/base/security/selinux_adapter/sepolicy/ohos_policy/filemanagement/userfile_manager/system/
H A Dsehap_contexts14 apl=normal name=com.ohos.medialibrary.medialibrarydata domain=medialibrary_hap type=medialibrary_ha…
15 apl=normal name=com.ohos.medialibrary.medialibrarydata:fileAccess domain=medialibrary_hap type=medi…
16 apl=normal name=com.ohos.medialibrary.medialibrarydata:backup domain=medialibrary_hap type=medialib…
/ohos5.0/base/security/access_token/frameworks/common/src/
H A Ddata_validator.cpp76 bool DataValidator::IsAplNumValid(const int apl) in IsAplNumValid() argument
78 return (apl == APL_NORMAL || apl == APL_SYSTEM_BASIC || apl == APL_SYSTEM_CORE); in IsAplNumValid()
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
H A Dprovision_verify_test.cpp53 "apl": "normal",
93 "apl": "normal",
113 "apl": "normal",
138 "apl": "normal",
161 "apl": "normal",
185 "apl": "normal",
426 "apl": "normal",
475 "apl": "normal",
527 "apl": "normal",
/ohos5.0/base/security/device_auth/services/frameworks/src/permission_adapter/
H A Dpermission_adapter.cpp98 if ((findInfo.apl != APL_SYSTEM_CORE) && (findInfo.apl != APL_SYSTEM_BASIC)) { in CheckPermission()
99 … LOGE("Check permission(APL3=SYSTEM_CORE or APL2=SYSTEM_BASIC) failed! APL: %d", findInfo.apl); in CheckPermission()
/ohos5.0/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
H A Dpermission_definition_parser.cpp65 static bool GetPermissionApl(const std::string &apl, AccessToken::ATokenAplEnum& aplNum) in GetPermissionApl() argument
67 if (apl == AVAILABLE_LEVEL_SYSTEM_CORE) { in GetPermissionApl()
71 if (apl == AVAILABLE_LEVEL_SYSTEM_BASIC) { in GetPermissionApl()
75 if (apl == AVAILABLE_LEVEL_NORMAL) { in GetPermissionApl()
79 ACCESSTOKEN_LOG_ERROR(LABEL, "Apl: %{public}s is invalid.", apl.c_str()); in GetPermissionApl()
/ohos5.0/foundation/filemanagement/dfs_service/services/
H A Ddistributedfile.cfg16 "apl": "system_basic",
34 "apl": "system_basic",
54 "apl": "system_basic",
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-boot-appspawn.md24 | apl | 即应用进程权限控制的apl,最大32字节. |
45 …ret = hapContext.HapDomainSetcontext(appProperty->property.apl, appProperty->property.processName);
48 errno, appProperty->property.apl);
/ohos5.0/base/security/access_token/frameworks/test/unittest/
H A Daccesstoken_parcel_test.cpp139 hapPolicyParcel.hapPolicyParameter.apl = ATokenAplEnum::APL_NORMAL;
152 EXPECT_EQ(hapPolicyParcel.hapPolicyParameter.apl, readedData->hapPolicyParameter.apl);
254 hapTokenInfo.apl = ATokenAplEnum::APL_NORMAL;
313 hapTokenInfo.apl = ATokenAplEnum::APL_NORMAL;
350 baseInfo.apl = APL_NORMAL,
383 baseInfo.apl = APL_NORMAL,
520 nativeTokenInfoParcel.nativeTokenInfoParams.apl = APL_NORMAL;
544 nativeTokenInfoParcel.nativeTokenInfoParams.apl = APL_NORMAL;
566 nativeTokenInfoParcel.nativeTokenInfoParams.apl = APL_NORMAL;
/ohos5.0/docs/zh-cn/application-dev/security/
H A Dapp-provision-structure.md39 "apl": "normal",
79 | apl | 表示应用程序的[APL级别](AccessToken/access-token-overview.md),系统预定义的apl包括:normal、system_basic和syste…
111 当需要使用系统API时,开发者需要手动修改app-feature字段为hos_system_app(系统应用);当需要申请高级别权限时,开发者可能需要修改apl、acl等字段,请根据实际需要,参考[…

12345678910>>...13