Home
last modified time | relevance | path

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

1234

/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.2.1/
H A Dchangelogs-filemanagement.md25 ## cl.filemanagement.2 securityLabel模块变更
27 文件管理子系统d.ts归档整改,现统一整改到file一层目录下。securityLabel模块支持错误码处理。
31 基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现securityLabel模块支持错误码处理,需注意错误码处理的使用。[相关适配指导参考](../OpenHarmony…
35securityLabel使用的是@ohos.securityLabel,以以下方式import:
38 import securityLabel from '@ohos.securityLabel';
41securityLabel使用的是@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 Djs-apis-file-securityLabel.md1 # @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 Dprocess_system_api_adapter_impl.cpp53 …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 Dsystem_api.cpp47 …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 Dchangelogs-filemanagement.md25 ## cl.filemanagement.2 securityLabel模块变更
27 文件管理子系统d.ts归档整改,现统一整改到file一层目录下。securityLabel模块支持错误码处理。
31 基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现securityLabel模块支持错误码处理,需注意错误码处理的使用。
35securityLabel使用的是@ohos.securityLabel,以以下方式import:
38 import securityLabel from '@ohos.securityLabel';
41securityLabel使用的是@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 Djs-apidiff-file-management.md9 | 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 Dchangelogs-filemanagement.md25 ## cl.filemanagement.2 securityLabel模块变更
27 文件管理子系统d.ts归档整改,现统一整改到file一层目录下。securityLabel模块支持错误码处理。
31 基于此前版本开发的应用,需注意d.ts位置的变更及import模块名的变更。现securityLabel模块支持错误码处理,需注意错误码处理的使用。[相关适配指导参考](../OpenHarmony…
35securityLabel使用的是@ohos.securityLabel,以以下方式import:
38 import securityLabel from '@ohos.securityLabel';
41securityLabel使用的是@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 Drd_single_ver_storage_engine.cpp109 … (!(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 Dsingle_ver_data_sync_utils.cpp123 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 Djs-apidiff-file-management.md9 | 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 Dchangelogs-filemanagement.md25 ## 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 Dchangelogs-securityLable.md22 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 Djs-apis-file-securityLabel.md1 # @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 Dset-security-label.md7 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 Dsecurity.cpp97 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 Dsensitive.cpp67 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 Djs-apidiff-file-management.md154 |新增|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 Dprocess_system_api_adapter_impl.cpp73 …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 Dchangelogs-filemanagement.md25 ## 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 Dstore_util_test.cpp56 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 Djs-apidiff-file-management.md62 …|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 Dchangelogs-filemanagement.md25 ## 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 Dset-security-label.md7 … 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 Dsingle_ver_utils.cpp94 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 Djs-apidiff-file-management.md154 |Added|NA|Module name: ohos.file.securityLabel<br>Class name: securityLabel|@ohos.file.securityLabe…
160securityLabel<br>Class name: securityLabel<br>Method or attribute name: function setSecurityLabel(…
162securityLabel<br>Class name: securityLabel<br>Method or attribute name: function setSecurityLabelS…
163securityLabel<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|
249securityLabel<br>Class name: securityLabel<br>Method or attribute name: function setSecurityLabel(…
250securityLabel<br>Class name: securityLabel<br>Method or attribute name: function setSecurityLabelS…
251securityLabel<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 …]

1234