Home
last modified time | relevance | path

Searched refs:SecurityLabel (Results 1 - 25 of 25) sorted by relevance

/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dsystem_api.cpp24 using Label = DistributedDB::SecurityLabel;
26 using SecurityLabel = OHOS::FileManagement::ModuleSecurityLabel::SecurityLabel;
66 bool result = SecurityLabel::SetSecurityLabel(filePath, secLevel); in SetSecurityOption()
93 std::string value = SecurityLabel::GetSecurityLabel(filePath); in GetSecurityOption()
H A Dprocess_system_api_adapter_impl.cpp24 using Label = DistributedDB::SecurityLabel;
26 using SecurityLabel = OHOS::FileManagement::ModuleSecurityLabel::SecurityLabel;
72 bool result = SecurityLabel::SetSecurityLabel(filePath, secLevel); in SetSecurityOption()
100 std::string value = SecurityLabel::GetSecurityLabel(filePath); in GetSecurityOption()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dsecurity_policy.cpp43 return FileManagement::ModuleSecurityLabel::SecurityLabel::GetSecurityLabel(filePath); in GetFileSecurityLevel()
50 auto errCode = FileManagement::ModuleSecurityLabel::SecurityLabel::SetSecurityLabel(config.GetPath(), in SetSecurityLabel()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel/
H A Dsecuritylabel_n_exporter.cpp61 bool ret = SecurityLabel::SetSecurityLabel(pathString, dataLevelString); in SetSecurityLabel()
115 bool ret = SecurityLabel::SetSecurityLabel(path.get(), dataLevel.get()); in SetSecurityLabelSync()
144 *result = SecurityLabel::GetSecurityLabel(pathString); in GetSecurityLabel()
185 std::string result = SecurityLabel::GetSecurityLabel(path.get()); in GetSecurityLabelSync()
H A Dsecurity_label.h33 class SecurityLabel { class
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/security/
H A Dsecurity.cpp223 bool result = OHOS::FileManagement::ModuleSecurityLabel::SecurityLabel::SetSecurityLabel(filePath, dataLevel); in SetFileSecurityOption()
229 std::string current = OHOS::FileManagement::ModuleSecurityLabel::SecurityLabel::GetSecurityLabel(filePath); in SetFileSecurityOption()
253 std::string value = OHOS::FileManagement::ModuleSecurityLabel::SecurityLabel::GetSecurityLabel(filePath); in GetFileSecurityOption()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_storage_single_ver_upgrade_test.cpp225 SecurityOption currentMetaSecOpt {SecurityLabel::S2, SecurityFlag::ECE}; in CheckSecOpt()
341 SecurityOption secopt{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
387 SecurityOption secopt{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
437 SecurityOption secopt{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
494 SecurityOption secopt{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
535 SecurityOption secopt = {SecurityLabel::S2, SecurityFlag::ECE}; in HWTEST_F()
570 SecurityOption secopt = {SecurityLabel::S3, SecurityFlag::ECE}; in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/
H A Dsingle_ver_data_sync_utils.cpp239 if (errCode == E_OK && localOption.securityLabel == SecurityLabel::NOT_SET) { in CheckPermitReceiveData()
243 if (remoteSecOption.securityLabel == SecurityLabel::S0 && localOption.securityLabel == SecurityLabel::S1) { in CheckPermitReceiveData()
244 remoteSecOption.securityLabel = SecurityLabel::S1; in CheckPermitReceiveData()
251 if (remoteSecOption.securityLabel != SecurityLabel::NOT_SET && in CheckPermitReceiveData()
H A Dsingle_ver_data_sync.cpp1344 if (context->GetRemoteSeccurityOption().securityLabel == SecurityLabel::NOT_SET && in RunPermissionCheck()
1345 securityOption.securityLabel != SecurityLabel::NOT_SET) { in RunPermissionCheck()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_storage_engine.cpp111 secOption.securityLabel != SecurityLabel::NOT_SET && in CheckDatabaseSecOpt()
112 option_.securityOpt.securityLabel != SecurityLabel::NOT_SET) { in CheckDatabaseSecOpt()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dsingle_ver_utils.cpp100 secOption.securityLabel = ((option.securityOpt.securityLabel >= SecurityLabel::S2) ? in CreateNewDirsAndSetSecOption()
101 SecurityLabel::S2 : option.securityOpt.securityLabel); in CreateNewDirsAndSetSecOption()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Ddistributeddb_single_ver_p2p_sync_check_test.cpp123 option.secOption.securityLabel = SecurityLabel::S3; in SetUp()
196 SecurityOption secOption{SecurityLabel::S4, SecurityFlag::ECE}; in HWTEST_F()
243 SecurityOption secOption{SecurityLabel::S4, SecurityFlag::ECE}; in HWTEST_F()
245 secOption.securityLabel = SecurityLabel::S3; in HWTEST_F()
326 option.secOption.securityLabel = SecurityLabel::NOT_SET; in HWTEST_F()
408 option.secOption.securityLabel = SecurityLabel::S1; in HWTEST_F()
423 option.securityLabel = SecurityLabel::S0; in HWTEST_F()
457 EXPECT_EQ(option.securityLabel, SecurityLabel::S3); in HWTEST_F()
498 option.securityLabel = SecurityLabel::S3; in HWTEST_F()
1236 option.secOption.securityLabel = SecurityLabel in ReOpenDB()
[all...]
H A Ddistributeddb_relational_ver_p2p_sync_test.cpp648 void GenerateSecurityData(std::vector<SecurityLabel> &labelList, std::vector<SecurityFlag> &flagList) in GenerateSecurityData()
651 SecurityLabel::NOT_SET, in GenerateSecurityData()
652 SecurityLabel::S1, SecurityLabel::S2, in GenerateSecurityData()
653 SecurityLabel::S3, SecurityLabel::S4 in GenerateSecurityData()
661 const std::vector<SecurityLabel> &labelList, const std::vector<SecurityFlag> &flagList) in SelectSecurityOption()
688 if (localOption.securityLabel == static_cast<int>(SecurityLabel::NOT_SET) || in GetSecurityRes()
689 remoteOption.securityLabel == static_cast<int>(SecurityLabel::NOT_SET)) { in GetSecurityRes()
761 std::vector<SecurityLabel> labelLis in TestWithSecurityCheck()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_database_upgrader.cpp326 metaSecOpt.securityLabel = ((secOption.securityLabel >= SecurityLabel::S2) ? in SetSecOption()
327 SecurityLabel::S2 : secOption.securityLabel); in SetSecOption()
H A Dsqlite_single_ver_storage_engine.cpp702 secOption.securityLabel != SecurityLabel::NOT_SET && in CheckDatabaseSecOpt()
703 option_.securityOpt.securityLabel != SecurityLabel::NOT_SET) { in CheckDatabaseSecOpt()
H A Dsqlite_single_ver_natural_store_connection.cpp67 kvDB_->GetMyProperties().GetSecLabel() > SecurityLabel::S2; in IsFileAccessControlled()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/
H A Dtypes_export.h168 enum SecurityLabel : int {
186 int securityLabel = 0; // the securityLabel is the class of data sensitive, see enum SecurityLabel
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/
H A Dability_sync.cpp537 if (errCode != -E_NOT_SUPPORT && option.securityLabel == SecurityLabel::NOT_SET) { in SecLabelCheck()
541 if (remoteSoftwareVersion >= SOFTWARE_VERSION_RELEASE_7_0 && remoteSecLabel == SecurityLabel::NOT_SET) { in SecLabelCheck()
545 if (remoteSecLabel == NOT_SUPPORT_SEC_CLASSIFICATION || remoteSecLabel == SecurityLabel::NOT_SET) { in SecLabelCheck()
548 if (errCode == -E_NOT_SUPPORT || (errCode == E_OK && option.securityLabel == SecurityLabel::NOT_SET)) { in SecLabelCheck()
H A Dremote_executor.cpp926 (remoteOption.securityLabel == SecurityLabel::NOT_SET || in CheckRemoteSecurityOption()
927 localOption.securityLabel == SecurityLabel::NOT_SET)) { in CheckRemoteSecurityOption()
1015 if (errCode != -E_NOT_SUPPORT && localOption.securityLabel == SecurityLabel::NOT_SET) { in CheckRemoteRecvData()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Dsingle_ver_database_oper.cpp41 option.securityLabel = ((mainSecLabel >= SecurityLabel::S2) ? SecurityLabel::S2 : mainSecLabel); in SetSecOpt()
H A Ddatabase_oper.cpp166 if (dbSecOpt == secOption || secOption.securityLabel == SecurityLabel::NOT_SET) { in CheckSecurityOption()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dparam_check_utils.cpp132 LOGE("[DBCommon] SecurityLabel is invalid, label is [%d].", secOption.securityLabel); in CheckSecOption()
160 SecurityOption S3SeceOpt = {SecurityLabel::S3, SecurityFlag::SECE}; in IsS3SECEOpt()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_import_and_export_rd_test.cpp1054 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
1108 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
H A Ddistributeddb_interfaces_import_and_export_test.cpp1076 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
1133 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
H A Dkv_store_delegate_manager.cpp297 if (option.secOption.securityLabel != SecurityLabel::NOT_SET || in GetKvStoreParamCheck()

Completed in 30 milliseconds