Home
last modified time | relevance | path

Searched refs:paraName (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/base/security/selinux_adapter/interfaces/tools/param_check/
H A Dtest.cpp43 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 Dsehap_contexts_trie.cpp22 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 Dselinux_parameter.c82 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 Dparam_checker.c60 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 Dcontexts_trie.c139 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 Dparam_selinux.c35 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 Dparam_stub.cpp80 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 Dparam_stub.h49 const char *paraName; member
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/
H A Drs_event_manager.cpp45 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 Drs_system_properties.cpp348 std::string RSSystemProperties::GetRSEventProperty(const std::string &paraName) 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 Dxml_parser.cpp114 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 Dxml_parser.h66 int32_t ParseSubSequentParams(xmlNode &node, std::string &paraName);
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dselinux_parameter.h30 const char *paraName; member
74 const char *GetParamLabel(const char *paraName);
82 int GetParamLabelIndex(const char *paraName);
H A Dsehap_contexts_trie.h33 bool Insert(const std::string &paraName, const std::string &domain, const std::string &type);
34 std::string Search(const std::string &paraName, bool isDomain);
41 std::vector<std::string> SplitString(const std::string &paraName);
H A Dcontexts_trie.h33 const char* SearchFromParamTrie(ParamContextsTrie *root, const char *paraName);
34 int GetLabelIndex(ParamContextsTrie *root, const char *paraName);
H A Dparam_checker.h43 int SetParamCheck(const char *paraName, const char *destContext, const SrcInfo *info);
/ohos5.0/base/startup/init/services/param/include/
H A Dparam_security.h117 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 Dge_system_properties.cpp21 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 Dosattr_manager.cpp45 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 Dge_system_properties.h37 static std::string GetEventProperty(const std::string& paraName);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/darwin/
H A Drs_system_properties.cpp146 std::string RSSystemProperties::GetRSEventProperty(const std::string &paraName) in GetRSEventProperty() argument
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/windows/
H A Drs_system_properties.cpp145 std::string RSSystemProperties::GetRSEventProperty(const std::string &paraName) in GetRSEventProperty() argument
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/platform/common/
H A Drs_system_properties.h151 static std::string GetRSEventProperty(const std::string &paraName);
/ohos5.0/foundation/resourceschedule/device_standby/utils/policy/src/
H A Dstandby_config_manager.cpp806 for (const auto& [paraName, paraVal] : standbyParaMap_) { in DumpStandbyConfigInfo()
807 stream << paraName << ": " << paraVal << "\n"; in DumpStandbyConfigInfo()