/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/ |
H A D | changelogs-filemanagement.md | 25 ## cl.filemanagement.2 securityLabel模块变更 27 文件管理子系统d.ts归档整改,现统一整改到file一层目录下。securityLabel模块支持错误码处理。 31 基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现securityLabel模块支持错误码处理,需注意错误码处理的使用。[相关适配指导参考](../OpenHarmony… 35 原securityLabel使用的是@ohos.securityLabel,以以下方式import: 38 import securityLabel from '@ohos.securityLabel'; 41 现securityLabel使用的是@ohos.file.securityLabel,以以下方式import: 44 import securityLabel from '@ohos.file.securityLabel';
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-file-securityLabel.md | 1 # @ohos.file.securityLabel (数据标签) 12 import { securityLabel } from '@kit.CoreFileKit'; 42 ## securityLabel.setSecurityLabel 83 securityLabel.setSecurityLabel(filePath, "s0").then(() => { 90 ## securityLabel.setSecurityLabel 135 ## securityLabel.setSecurityLabelSync 169 securityLabel.setSecurityLabelSync(filePath, "s0"); 172 ## securityLabel.getSecurityLabel 219 ## securityLabel.getSecurityLabel 263 ## securityLabel.getSecurityLabelSync [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | process_system_api_adapter_impl.cpp | 53 …if (filePath.empty() || option.securityLabel < Label::NOT_SET || option.securityLabel > Label::S4)… in SetSecurityOption() 67 if (option.securityLabel == Label::NOT_SET) { in SetSecurityOption() 71 auto secLevel = std::string("s") + std::to_string(option.securityLabel - 1); in SetSecurityOption() 111 auto securityLabel = option.securityLabel; in CheckDeviceSecurityAbility() local 112 return endpoint_->IsSaferThanDevice(securityLabel, devId); in CheckDeviceSecurityAbility()
|
H A D | system_api.cpp | 47 …if (filePath.empty() || option.securityLabel < Label::NOT_SET || option.securityLabel > Label::S4)… in SetSecurityOption() 61 if (option.securityLabel == Label::NOT_SET) { in SetSecurityOption() 65 auto secLevel = std::string("s") + std::to_string(option.securityLabel - 1); in SetSecurityOption()
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-filemanagement.md | 25 ## cl.filemanagement.2 securityLabel模块变更 27 文件管理子系统d.ts归档整改,现统一整改到file一层目录下。securityLabel模块支持错误码处理。 31 基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现securityLabel模块支持错误码处理,需注意错误码处理的使用。 35 原securityLabel使用的是@ohos.securityLabel,以以下方式import: 38 import securityLabel from '@ohos.securityLabel'; 41 现securityLabel使用的是@ohos.file.securityLabel,以以下方式import: 44 import securityLabel from '@ohos.file.securityLabel';
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta1/ |
H A D | js-apidiff-file-management.md | 9 | ohos.securityLabel | securityLabel | getSecurityLabelSync(path:string): string; | 新增 | 10 | ohos.securityLabel | securityLabel | getSecurityLabel(path:string, callback: AsyncCallback\<strin… 11 | ohos.securityLabel | securityLabel | setSecurityLabelSync(path:string, type:dataLevel): void; | 新… 12 | ohos.securityLabel | securityLabel | setSecurityLabel(path:string, type:dataLevel, callback: Asyn…
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.5/ |
H A D | changelogs-filemanagement.md | 25 ## cl.filemanagement.2 securityLabel模块变更 27 文件管理子系统d.ts归档整改,现统一整改到file一层目录下。securityLabel模块支持错误码处理。 31 基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现securityLabel模块支持错误码处理,需注意错误码处理的使用。[相关适配指导参考](../OpenHarmony… 35 原securityLabel使用的是@ohos.securityLabel,以以下方式import: 38 import securityLabel from '@ohos.securityLabel'; 41 现securityLabel使用的是@ohos.file.securityLabel,以以下方式import: 44 import securityLabel from '@ohos.file.securityLabel';
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_storage_engine.cpp | 109 … (!(secOption == option_.securityOpt) && (secOption.securityLabel > option_.securityOpt.securityLa… in CheckDatabaseSecOpt() 110 secOption.securityLabel != SecurityLabel::NOT_SET && in CheckDatabaseSecOpt() 111 option_.securityOpt.securityLabel != SecurityLabel::NOT_SET) { in CheckDatabaseSecOpt() 113 secOption.securityLabel, secOption.securityFlag, option_.securityOpt.securityLabel, in CheckDatabaseSecOpt() 156 secOpt.securityLabel, secOpt.securityFlag, hashIdentifier_.c_str(), errCode); in GetDbHandle()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
H A D | single_ver_data_sync_utils.cpp | 123 if (remoteSecOption.securityLabel == NOT_SUPPORT_SEC_CLASSIFICATION) { in IsPermitRemoteDeviceRecvData() 134 if (localSecOption.securityLabel == NOT_SET) { in IsPermitRemoteDeviceRecvData() 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() 247 if (remoteSecOption.securityLabel == FAILED_GET_SEC_CLASSIFICATION) { in CheckPermitReceiveData() 251 if (remoteSecOption.securityLabel != SecurityLabel::NOT_SET && in CheckPermitReceiveData() 252 remoteSecOption.securityLabel != localOption.securityLabel) { in CheckPermitReceiveData() 254 localOption.securityLabel); in CheckPermitReceiveData() 557 localOption.securityLabel = NOT_SUPPORT_SEC_CLASSIFICATION; in SetDataRequestCommonInfo() [all …]
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta1/ |
H A D | js-apidiff-file-management.md | 9 | ohos.securityLabel | securityLabel | getSecurityLabelSync(path:string): string; | Added| 10 | ohos.securityLabel | securityLabel | getSecurityLabel(path:string, callback: AsyncCallback\<strin… 11 | ohos.securityLabel | securityLabel | setSecurityLabelSync(path:string, type:dataLevel): void; | A… 12 | ohos.securityLabel | securityLabel | setSecurityLabel(path:string, type:dataLevel, callback: Asyn…
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.2.1/ |
H A D | changelogs-filemanagement.md | 25 ## cl.filemanagement.2 Changed securityLabel 27 …s** file has been archived and moved to the **file** directory. The **securityLabel** module suppo… 31 …location and the name of the module to be imported are changed. The **securityLabel** module suppo… 35 Before the change, **securityLabel** was imported using **@ohos.securityLabel**: 38 import securityLabel from '@ohos.securityLabel'; 41 But now, **securityLabel** is imported using **@ohos.file.securityLabel**: 44 import securityLabel from '@ohos.file.securityLabel';
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.38/ |
H A D | changelogs-securityLable.md | 22 import {fileIo,securityLabel} from '@kit.CoreFileKit'; 26 securityLabel.setSecurityLabelSync(file.path, "s4"); 27 securityLabel.setSecurityLabelSync(file.path, "s3"); 75 import {fileIo,securityLabel} from '@kit.CoreFileKit'; 79 let label = securityLabel.getSecurityLabelSync(file.path);
|
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/ |
H A D | js-apis-file-securityLabel.md | 1 # @ohos.file.securityLabel (Data Label) 12 import { securityLabel } from '@kit.CoreFileKit'; 42 ## securityLabel.setSecurityLabel 83 securityLabel.setSecurityLabel(filePath, "s0").then(() => { 90 ## securityLabel.setSecurityLabel 135 ## securityLabel.setSecurityLabelSync 169 securityLabel.setSecurityLabelSync(filePath, "s0"); 172 ## securityLabel.getSecurityLabel 219 ## securityLabel.getSecurityLabel 263 ## securityLabel.getSecurityLabelSync [all …]
|
/ohos5.0/docs/zh-cn/application-dev/file-management/ |
H A D | set-security-label.md | 7 API详细介绍请参见[ohos.file.securityLabel](../reference/apis-core-file-kit/js-apis-file-securityLabel.md)。 28 import { securityLabel } from '@kit.CoreFileKit'; 41 securityLabel.setSecurityLabel(filePath, 's0').then(() => {
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/security/ |
H A D | security.cpp | 97 ZLOGD("The kvstore security level: label:%d", option.securityLabel); in CheckDeviceSecurityAbility() 114 if (option.securityLabel <= NOT_SET || option.securityLabel > S4) { in Convert2Name() 118 return LABEL_VALUES[option.securityLabel]; in Convert2Name() 211 … ZLOGE("option:%{public}d file:%{public}s not exits", option.securityLabel, filePath.c_str()); in SetFileSecurityOption() 214 if (option.securityLabel == NOT_SET) { in SetFileSecurityOption() 219 … ZLOGE("Invalid args! label:%{public}d path:%{public}s", option.securityLabel, filePath.c_str()); in SetFileSecurityOption()
|
H A D | sensitive.cpp | 67 if (option.securityLabel == DistributedDB::NOT_SET) { in operator >=() 72 if (level <= DATA_SEC_LEVEL1 && static_cast<uint32_t>(option.securityLabel - 1) > level) { in operator >=() 76 return (level >= static_cast<uint32_t>(option.securityLabel - 1)); in operator >=()
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.2-beta5/ |
H A D | js-apidiff-file-management.md | 154 |新增|NA|模块名: ohos.file.securityLabel<br>类名: securityLabel|@ohos.file.securityLabel.d.ts| 160 …ile.securityLabel<br>类名: securityLabel<br>方法 or 属性: function setSecurityLabel(path: string, type: … 162 ….file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function setSecurityLabelSync(path: string, … 163 … ohos.file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function getSecurityLabel(path: string)… 165 …块名: ohos.file.securityLabel<br>类名: securityLabel<br>方法 or 属性: function getSecurityLabelSync(path: … 242 |删除|模块名: ohos.securityLabel<br>类名: securityLabel|NA|@ohos.securityLabel.d.ts| 249 … ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function setSecurityLabel(path:string, type:d… 250 …块名: ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function setSecurityLabelSync(path:string,… 251 …s.securityLabel<br>类名: securityLabel<br>方法 or 属性:function getSecurityLabel(path:string, callback: … 252 …删除|模块名: ohos.securityLabel<br>类名: securityLabel<br>方法 or 属性:function getSecurityLabel(path:string)… [all …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | process_system_api_adapter_impl.cpp | 73 …OGD("set path secOpt![%s] [%d] [%d]", filePath.c_str(), option.securityFlag, option.securityLabel); in SetSecurityOption() 95 …LOGD("set path secOpt![%s] [%d] [%d]", dirName.c_str(), option.securityFlag, option.securityLabel); in SetSecurityOption() 99 …LOGD("set path secOpt![%s] [%d] [%d]", dirName.c_str(), option.securityFlag, option.securityLabel); in SetSecurityOption() 116 option.securityLabel = NOT_SET; in GetSecurityOption() 120 …mpl] Get path secOpt![%s] [%d] [%d]", filePath.c_str(), option.securityFlag, option.securityLabel); in GetSecurityOption()
|
/ohos5.0/docs/en/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-filemanagement.md | 25 ## cl.filemanagement.2 securityLabel Change 27 Moved the file management subsystem **d.ts** file to the **file** directory. The **securityLabel** … 31 …location and the name of the module to be imported are changed. The **securityLabel** module suppo… 35 Before the change, **securityLabel** is imported from **@ohos.securityLabel**: 38 import securityLabel from '@ohos.securityLabel'; 41 Now, **securityLabel** is imported from **@ohos.file.securityLabel**: 44 import securityLabel from '@ohos.file.securityLabel';
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | store_util_test.cpp | 56 ASSERT_EQ(dbsecurity.securityLabel, DistributedDB::NOT_SET); 60 ASSERT_EQ(dbsecurity.securityLabel, DistributedDB::NOT_SET); 64 ASSERT_EQ(dbsecurity.securityLabel, DistributedDB::S3); 68 ASSERT_EQ(dbsecurity.securityLabel, DistributedDB::S4); 83 ASSERT_EQ(security, dbSec.securityLabel);
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/Beta5 to v3.2-Release/ |
H A D | js-apidiff-file-management.md | 62 …|NA|模块名: ohos.file.securityLabel<br>类名: DataLevel<br>方法 or 属性:type DataLevel = 's0'\|'s1'\|'s2'\|'… 64 …|NA|模块名: ohos.file.securityLabel<br>类名: DataLevel<br>方法 or 属性:type DataLevel = 's0'\|'s1'\|'s2'\|'… 66 …|NA|模块名: ohos.file.securityLabel<br>类名: DataLevel<br>方法 or 属性:type DataLevel = 's0'\|'s1'\|'s2'\|'… 68 …|NA|模块名: ohos.file.securityLabel<br>类名: DataLevel<br>方法 or 属性:type DataLevel = 's0'\|'s1'\|'s2'\|'… 70 …|NA|模块名: ohos.file.securityLabel<br>类名: DataLevel<br>方法 or 属性:type DataLevel = 's0'\|'s1'\|'s2'\|'… 140 …删除|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s… 141 …删除|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s… 142 …删除|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s… 143 …删除|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s… 144 …删除|模块名: ohos.file.securityLabel<br>类名: dataLevel<br>方法 or 属性:type dataLevel = 's0'\|'s1'\|'s2'\|'s… [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.5/ |
H A D | changelogs-filemanagement.md | 25 ## cl.filemanagement.2 securityLabel Change 27 Moved the file management subsystem **d.ts** file to the **file** directory. The **securityLabel** … 31 …location and the name of the module to be imported are changed. The **securityLabel** module suppo… 35 Before the change, **securityLabel** is imported from **@ohos.securityLabel**: 38 import securityLabel from '@ohos.securityLabel'; 41 Now, **securityLabel** is imported from **@ohos.file.securityLabel**: 44 import securityLabel from '@ohos.file.securityLabel';
|
/ohos5.0/docs/en/application-dev/file-management/ |
H A D | set-security-label.md | 7 … details about the APIs, see [ohos.file.securityLabel](../reference/apis-core-file-kit/js-apis-fil… 28 import { securityLabel } from '@kit.CoreFileKit'; 41 securityLabel.setSecurityLabel(filePath, 's0').then(() => {
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | single_ver_utils.cpp | 94 if (option.securityOpt.securityLabel == NOT_SET) { in CreateNewDirsAndSetSecOption() 100 secOption.securityLabel = ((option.securityOpt.securityLabel >= SecurityLabel::S2) ? in CreateNewDirsAndSetSecOption() 101 SecurityLabel::S2 : option.securityOpt.securityLabel); in CreateNewDirsAndSetSecOption()
|
/ohos5.0/docs/en/release-notes/api-diff/v3.2-beta5/ |
H A D | js-apidiff-file-management.md | 154 |Added|NA|Module name: ohos.file.securityLabel<br>Class name: securityLabel|@ohos.file.securityLabe… 160 …securityLabel<br>Class name: securityLabel<br>Method or attribute name: function setSecurityLabel(… 162 …securityLabel<br>Class name: securityLabel<br>Method or attribute name: function setSecurityLabelS… 163 …securityLabel<br>Class name: securityLabel<br>Method or attribute name: function getSecurityLabel(… 165 …e.securityLabel<br>Class name: securityLabel<br>Method or attribute name: function getSecurityLabe… 242 |Deleted|Module name: ohos.securityLabel<br>Class name: securityLabel|NA|@ohos.securityLabel.d.ts| 249 …securityLabel<br>Class name: securityLabel<br>Method or attribute name: function setSecurityLabel(… 250 …securityLabel<br>Class name: securityLabel<br>Method or attribute name: function setSecurityLabelS… 251 …securityLabel<br>Class name: securityLabel<br>Method or attribute name: function getSecurityLabel(… 252 ….securityLabel<br>Class name: securityLabel<br>Method or attribute name: function getSecurityLabel… [all …]
|