/ohos5.0/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; typedef 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; typedef 72 bool result = SecurityLabel::SetSecurityLabel(filePath, secLevel); in SetSecurityOption() 100 std::string value = SecurityLabel::GetSecurityLabel(filePath); in GetSecurityOption()
|
/ohos5.0/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()
|
/ohos5.0/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 {
|
/ohos5.0/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}; 387 SecurityOption secopt{SecurityLabel::S3, SecurityFlag::SECE}; 437 SecurityOption secopt{SecurityLabel::S3, SecurityFlag::SECE}; 494 SecurityOption secopt{SecurityLabel::S3, SecurityFlag::SECE}; 535 SecurityOption secopt = {SecurityLabel::S2, SecurityFlag::ECE}; 570 SecurityOption secopt = {SecurityLabel::S3, SecurityFlag::ECE};
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/security/ |
H A D | security.cpp | 223 …bool result = OHOS::FileManagement::ModuleSecurityLabel::SecurityLabel::SetSecurityLabel(filePath,… in SetFileSecurityOption() 229 …std::string current = OHOS::FileManagement::ModuleSecurityLabel::SecurityLabel::GetSecurityLabel(f… in SetFileSecurityOption() 253 …std::string value = OHOS::FileManagement::ModuleSecurityLabel::SecurityLabel::GetSecurityLabel(fil… in GetFileSecurityOption()
|
/ohos5.0/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 == SecurityLab… 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 | 1333 if (context->GetRemoteSeccurityOption().securityLabel == SecurityLabel::NOT_SET && in RunPermissionCheck() 1334 securityOption.securityLabel != SecurityLabel::NOT_SET) { in RunPermissionCheck()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_storage_engine.cpp | 110 secOption.securityLabel != SecurityLabel::NOT_SET && in CheckDatabaseSecOpt() 111 option_.securityOpt.securityLabel != SecurityLabel::NOT_SET) { in CheckDatabaseSecOpt()
|
/ohos5.0/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()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_p2p_sync_check_test.cpp | 121 option.secOption.securityLabel = SecurityLabel::S3; in SetUp() 194 SecurityOption secOption{SecurityLabel::S4, SecurityFlag::ECE}; 243 secOption.securityLabel = SecurityLabel::S3; 324 option.secOption.securityLabel = SecurityLabel::NOT_SET; 406 option.secOption.securityLabel = SecurityLabel::S1; 421 option.securityLabel = SecurityLabel::S0; in __anon6e997c5f0b02() 455 EXPECT_EQ(option.securityLabel, SecurityLabel::S3); in __anon6e997c5f0c02() 496 option.securityLabel = SecurityLabel::S3; in __anon6e997c5f0e02() 933 option.secOption.securityLabel = SecurityLabel::S3; in ReOpenDB() 1897 option.secOption.securityLabel = SecurityLabel::S3; [all …]
|
H A D | distributeddb_relational_ver_p2p_sync_test.cpp | 648 …void GenerateSecurityData(std::vector<SecurityLabel> &labelList, std::vector<SecurityFlag> &flagLi… 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> labelList; in TestWithSecurityCheck()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_database_upgrader.cpp | 333 metaSecOpt.securityLabel = ((secOption.securityLabel >= SecurityLabel::S2) ? in SetSecOption() 334 SecurityLabel::S2 : secOption.securityLabel); in SetSecOption()
|
H A D | sqlite_single_ver_storage_engine.cpp | 695 secOption.securityLabel != SecurityLabel::NOT_SET && in CheckDatabaseSecOpt() 696 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()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/ |
H A D | types_export.h | 168 enum SecurityLabel : int { enum
|
/ohos5.0/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_… 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_SE… in SecLabelCheck()
|
H A D | remote_executor.cpp | 927 (remoteOption.securityLabel == SecurityLabel::NOT_SET || in CheckRemoteSecurityOption() 928 localOption.securityLabel == SecurityLabel::NOT_SET)) { in CheckRemoteSecurityOption() 1016 if (errCode != -E_NOT_SUPPORT && localOption.securityLabel == SecurityLabel::NOT_SET) { in CheckRemoteRecvData()
|
/ohos5.0/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()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/ |
H A D | param_check_utils.cpp | 160 SecurityOption S3SeceOpt = {SecurityLabel::S3, SecurityFlag::SECE}; in IsS3SECEOpt()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_import_and_export_rd_test.cpp | 1065 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE}; 1119 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE};
|
H A D | distributeddb_interfaces_import_and_export_test.cpp | 1076 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE}; 1133 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE};
|
/ohos5.0/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()
|