Home
last modified time | relevance | path

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

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dsystem_api.cpp24 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 Dprocess_system_api_adapter_impl.cpp24 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 Dsecurity_policy.cpp43 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 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 {
/ohos5.0/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};
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 Dsecurity.cpp223 …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 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 == SecurityLab… in CheckPermitReceiveData()
244 remoteSecOption.securityLabel = SecurityLabel::S1; in CheckPermitReceiveData()
251 if (remoteSecOption.securityLabel != SecurityLabel::NOT_SET && in CheckPermitReceiveData()
H A Dsingle_ver_data_sync.cpp1333 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 Drd_single_ver_storage_engine.cpp110 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 Dsingle_ver_utils.cpp100 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 Ddistributeddb_single_ver_p2p_sync_check_test.cpp121 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 Ddistributeddb_relational_ver_p2p_sync_test.cpp648 …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 Dsqlite_single_ver_database_upgrader.cpp333 metaSecOpt.securityLabel = ((secOption.securityLabel >= SecurityLabel::S2) ? in SetSecOption()
334 SecurityLabel::S2 : secOption.securityLabel); in SetSecOption()
H A Dsqlite_single_ver_storage_engine.cpp695 secOption.securityLabel != SecurityLabel::NOT_SET && in CheckDatabaseSecOpt()
696 option_.securityOpt.securityLabel != SecurityLabel::NOT_SET) { in CheckDatabaseSecOpt()
H A Dsqlite_single_ver_natural_store_connection.cpp67 kvDB_->GetMyProperties().GetSecLabel() > SecurityLabel::S2; in IsFileAccessControlled()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/include/
H A Dtypes_export.h168 enum SecurityLabel : int { enum
/ohos5.0/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_… 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 Dremote_executor.cpp927 (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 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()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dparam_check_utils.cpp160 SecurityOption S3SeceOpt = {SecurityLabel::S3, SecurityFlag::SECE}; in IsS3SECEOpt()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_import_and_export_rd_test.cpp1065 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE};
1119 SecurityOption secOption{SecurityLabel::S3, SecurityFlag::SECE};
H A Ddistributeddb_interfaces_import_and_export_test.cpp1076 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 Dkv_store_delegate_manager.cpp297 if (option.secOption.securityLabel != SecurityLabel::NOT_SET || in GetKvStoreParamCheck()