/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | system_api.cpp | 24 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 D | process_system_api_adapter_impl.cpp | 24 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 D | security_policy.cpp | 43 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 D | securitylabel_n_exporter.cpp | 61 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 D | security_label.h | 33 class SecurityLabel { class
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/security/ |
H A D | security.cpp | 223 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 D | distributeddb_storage_single_ver_upgrade_test.cpp | 225 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 D | single_ver_data_sync_utils.cpp | 239 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 D | single_ver_data_sync.cpp | 1344 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 D | rd_single_ver_storage_engine.cpp | 111 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 D | single_ver_utils.cpp | 100 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 D | distributeddb_single_ver_p2p_sync_check_test.cpp | 123 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 D | distributeddb_relational_ver_p2p_sync_test.cpp | 648 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 D | sqlite_single_ver_database_upgrader.cpp | 326 metaSecOpt.securityLabel = ((secOption.securityLabel >= SecurityLabel::S2) ? in SetSecOption() 327 SecurityLabel::S2 : secOption.securityLabel); in SetSecOption()
|
H A D | sqlite_single_ver_storage_engine.cpp | 702 secOption.securityLabel != SecurityLabel::NOT_SET && in CheckDatabaseSecOpt() 703 option_.securityOpt.securityLabel != SecurityLabel::NOT_SET) { in CheckDatabaseSecOpt()
|
H A D | sqlite_single_ver_natural_store_connection.cpp | 67 kvDB_->GetMyProperties().GetSecLabel() > SecurityLabel::S2; in IsFileAccessControlled()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/ |
H A D | types_export.h | 168 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 D | ability_sync.cpp | 537 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 D | remote_executor.cpp | 926 (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 D | single_ver_database_oper.cpp | 41 option.securityLabel = ((mainSecLabel >= SecurityLabel::S2) ? SecurityLabel::S2 : mainSecLabel); in SetSecOpt()
|
H A D | database_oper.cpp | 166 if (dbSecOpt == secOption || secOption.securityLabel == SecurityLabel::NOT_SET) { in CheckSecurityOption()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | param_check_utils.cpp | 132 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 D | distributeddb_interfaces_import_and_export_rd_test.cpp | 1054 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F() 1108 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE}; in HWTEST_F()
|
H A D | distributeddb_interfaces_import_and_export_test.cpp | 1076 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 D | kv_store_delegate_manager.cpp | 297 if (option.secOption.securityLabel != SecurityLabel::NOT_SET || in GetKvStoreParamCheck()
|