/ohos5.0/base/security/selinux_adapter/interfaces/tools/param_check/ |
H A D | test.cpp | 43 std::string paraName; member 135 …std::cout << GetErrStr(SetParamCheck(paraName.c_str(), GetParamLabel(paraName.c_str()), info)) << … in TestSetPara() 179 input.paraName = optarg; in SetOptions() 218 if (!testCmd.paraName.empty()) { in TestWriteParameters() 224 std::string paraName; in TestWriteParameters() local 225 while (std::cin >> paraName) { in TestWriteParameters() 226 TestSetPara(paraName, &info); in TestWriteParameters() 235 std::string paraName; in Test() local 242 while (std::cin >> paraName) { in Test() 243 TestGetContext(paraName); in Test() [all …]
|
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
H A D | sehap_contexts_trie.cpp | 22 std::vector<std::string> SehapContextsTrie::SplitString(const std::string& paraName) in SplitString() argument 26 size_t len = paraName.length(); in SplitString() 30 if ((pos = paraName.substr(index).find(delimiter)) == std::string::npos) { in SplitString() 33 std::string element = paraName.substr(index, pos); in SplitString() 39 if (!paraName.substr(index).empty()) { in SplitString() 40 words.emplace_back(paraName.substr(index)); in SplitString() 55 bool SehapContextsTrie::Insert(const std::string& paraName, const std::string& domain, const std::s… in Insert() argument 58 std::vector<std::string> words = SplitString(paraName); in Insert() 72 if ((paraName.back() == '.') || (paraName.back() == '*')) { in Insert() 84 std::string SehapContextsTrie::Search(const std::string& paraName, bool isDomain) in Search() argument [all …]
|
H A D | selinux_parameter.c | 82 const char *GetParamLabel(const char *paraName) in GetParamLabel() argument 84 if (paraName == NULL || g_contextsTrie == NULL) { in GetParamLabel() 87 return SearchFromParamTrie(g_contextsTrie, paraName); in GetParamLabel() 90 int GetParamLabelIndex(const char *paraName) in GetParamLabelIndex() argument 92 if ((paraName == NULL) || (g_contextsTrie == NULL)) { in GetParamLabelIndex() 95 return GetLabelIndex(g_contextsTrie, paraName); in GetParamLabelIndex()
|
H A D | param_checker.c | 60 static int CheckPerm(const char *paraName, const char *srcContext, const char *destContext, const s… in CheckPerm() argument 66 …ux_log(SELINUX_INFO, "srcContext[%s] is setting param[%s] destContext[%s]\n", srcContext, paraName, in CheckPerm() 69 msg.name = paraName; in CheckPerm() 82 int SetParamCheck(const char *paraName, const char *destContext, const SrcInfo *info) in SetParamCheck() argument 84 if (paraName == NULL || destContext == NULL || info == NULL) { in SetParamCheck() 96 int res = CheckPerm(paraName, srcContext, destContext, &(info->uc)); in SetParamCheck()
|
H A D | contexts_trie.c | 139 const char *SearchFromParamTrie(ParamContextsTrie *root, const char *paraName) in SearchFromParamTrie() argument 142 const char *tmpName = paraName; in SearchFromParamTrie() 175 int GetLabelIndex(ParamContextsTrie *root, const char *paraName) in GetLabelIndex() argument 178 const char *tmpName = paraName; in GetLabelIndex() 237 node->info.paraName = param; in InsertContextsList()
|
/ohos5.0/base/startup/init/services/param/adapter/ |
H A D | param_selinux.c | 35 typedef int (*SelinuxSetParamCheck)(const char *paraName, const char *destContext, const SrcInfo *i… 138 … PARAM_LOGE("Forbid to add selinux workspace %s %s", paramNode->paraName, paramNode->paraContext); in HandleSelinuxLabelForOpen() 143 SetSelinuxFileCon(paramNode->paraName, paramNode->paraContext); in HandleSelinuxLabelForOpen() 169 node->info.index, node->info.paraName, node->info.paraContext); in SelinuxGetAllLabel() 170 if (node->info.paraContext == NULL || node->info.paraName == NULL) { in SelinuxGetAllLabel() 190 if (*(paramNode->paraName + strlen(paramNode->paraName) - 1) != '.') { in HandleSelinuxLabelForPermission() 197 …K(space != NULL && space->area != NULL, return, "Failed to get dac space %s", paramNode->paraName); in HandleSelinuxLabelForPermission() 199 (void)FindTrieNode(space, paramNode->paraName, strlen(paramNode->paraName), &index); in HandleSelinuxLabelForPermission() 201 PARAM_CHECK(node != NULL, return, "Can not get security label for %s", paramNode->paraName); in HandleSelinuxLabelForPermission() 203 paramNode->paraName, labelIndex, node->selinuxIndex, index, paramNode->paraContext); in HandleSelinuxLabelForPermission() [all …]
|
/ohos5.0/base/startup/init/test/unittest/param/ |
H A D | param_stub.cpp | 80 static const char *TestGetParamLabel(const char *paraName) in TestGetParamLabel() argument 82 BEGET_LOGI("TestGetParamLabel %s", paraName); in TestGetParamLabel() 83 if (paraName == nullptr) { in TestGetParamLabel() 91 int code = TestGenHashCode(paraName); in TestGetParamLabel() 103 int code = TestGenHashCode(paraName); in TestGetSelinuxLabelIndex() 112 static int TestReadParamCheck(const char *paraName) in TestReadParamCheck() argument 128 free((void *)head->info.paraName); in TestDestroyParamList() 140 head->info.paraName = strdup(selinuxLabels[0][0]); in TestGetParamList() 158 node->info.paraName = nullptr; in TestGetParamList() 167 node->info.paraName = strdup(selinuxLabels[0][0]); in TestGetParamList() [all …]
|
H A D | param_stub.h | 49 const char *paraName; member
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/ |
H A D | rs_event_manager.cpp | 45 std::string paraName = "rosen.RsDFXEvent." + detectorPtr->GetStringId() + in DumpDetectorParam() local 47 dumpString.append(paraName + item.second + "\n"); in DumpDetectorParam() 62 std::string paraName = "rosen.RsDFXEvent." + detectorPtr->GetStringId() + in DumpEventIntervalMs() local 64 …dumpString.append(paraName + std::to_string(eventStateList_[detectorPtr->GetStringId()].eventInter… in DumpEventIntervalMs() 89 std::string paraName = "rosen.RsDFXEvent." + detectorPtr->GetStringId() + in UpdateDetectorParam() local 91 RS_LOGD("RSEventManager::UpdateDetectorParam paraName: %{public}s", paraName.c_str()); in UpdateDetectorParam() 92 detectorPtr->SetParam(item.first, RSSystemProperties::GetRSEventProperty(paraName)); in UpdateDetectorParam() 107 std::string paraName = "rosen.RsDFXEvent." + detectorPtr->GetStringId() + in UpdateEventIntervalMs() local 109 RS_LOGD("RSEventManager::UpdateEventIntervalMs paraName: %{public}s", paraName.c_str()); in UpdateEventIntervalMs() 110 int valueInt = atoi(RSSystemProperties::GetRSEventProperty(paraName).c_str()); in UpdateEventIntervalMs()
|
H A D | rs_system_properties.cpp | 348 std::string RSSystemProperties::GetRSEventProperty(const std::string ¶Name) in GetRSEventProperty() argument 350 return system::GetParameter(paraName, "0"); in GetRSEventProperty()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/config/ |
H A D | xml_parser.cpp | 114 if (paraName == "default_refreshrate_mode") { in ParseParam() 130 if (paraName == "additional_touch_rate_config") { in ParseSubSequentParams() 132 } else if (paraName == "refreshRate_strategy_config") { in ParseSubSequentParams() 142 } else if (paraName == "safe_vote") { in ParseSubSequentParams() 145 } else if (paraName == "screen_strategy_config") { in ParseSubSequentParams() 147 } else if (paraName == "screen_config") { in ParseSubSequentParams() 151 } else if (paraName == "source_tuning_for_yuv420") { in ParseSubSequentParams() 153 } else if (paraName == "rs_solid_color_layer_config") { in ParseSubSequentParams() 165 if (paraName.empty()) { in ParseParams() 174 if (paraName == "refresh_rate_4settings") { in ParseParams() [all …]
|
H A D | xml_parser.h | 66 int32_t ParseSubSequentParams(xmlNode &node, std::string ¶Name);
|
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/include/ |
H A D | selinux_parameter.h | 30 const char *paraName; member 74 const char *GetParamLabel(const char *paraName); 82 int GetParamLabelIndex(const char *paraName);
|
H A D | sehap_contexts_trie.h | 33 bool Insert(const std::string ¶Name, const std::string &domain, const std::string &type); 34 std::string Search(const std::string ¶Name, bool isDomain); 41 std::vector<std::string> SplitString(const std::string ¶Name);
|
H A D | contexts_trie.h | 33 const char* SearchFromParamTrie(ParamContextsTrie *root, const char *paraName); 34 int GetLabelIndex(ParamContextsTrie *root, const char *paraName);
|
H A D | param_checker.h | 43 int SetParamCheck(const char *paraName, const char *destContext, const SrcInfo *info);
|
/ohos5.0/base/startup/init/services/param/include/ |
H A D | param_security.h | 117 int (*setParamCheck)(const char *paraName, const char *destContext, const SrcInfo *info); 118 const char *(*getParamLabel)(const char *paraName); 120 int (*readParamCheck)(const char *paraName); 123 int (*getParamLabelIndex)(const char *paraName);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/ |
H A D | ge_system_properties.cpp | 21 std::string GESystemProperties::GetEventProperty(const std::string& paraName) in GetEventProperty() argument 24 return system::GetParameter(paraName, "0"); in GetEventProperty()
|
/ohos5.0/foundation/resourceschedule/ffrt/src/eu/ |
H A D | osattr_manager.cpp | 45 std::string paraName; in UpdateSchedAttr() member 60 if (!CheckSchedAttrPara(tmpPara.paraName, tmpPara.min, tmpPara.max, tmpPara.paraValue)) { in UpdateSchedAttr()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/include/ |
H A D | ge_system_properties.h | 37 static std::string GetEventProperty(const std::string& paraName);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/ |
H A D | rs_system_properties.cpp | 146 std::string RSSystemProperties::GetRSEventProperty(const std::string ¶Name) in GetRSEventProperty() argument
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/ |
H A D | rs_system_properties.cpp | 145 std::string RSSystemProperties::GetRSEventProperty(const std::string ¶Name) in GetRSEventProperty() argument
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/common/ |
H A D | rs_system_properties.h | 151 static std::string GetRSEventProperty(const std::string ¶Name);
|
/ohos5.0/foundation/resourceschedule/device_standby/utils/policy/src/ |
H A D | standby_config_manager.cpp | 806 for (const auto& [paraName, paraVal] : standbyParaMap_) { in DumpStandbyConfigInfo() 807 stream << paraName << ": " << paraVal << "\n"; in DumpStandbyConfigInfo()
|