Home
last modified time | relevance | path

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

12

/ohos5.0/base/startup/init/services/param/adapter/
H A Dparam_selinux.c136 int ret = OpenWorkSpace(labelIndex, readOnly); in HandleSelinuxLabelForOpen()
141 if (!readOnly) { in HandleSelinuxLabelForOpen()
160 int SelinuxGetAllLabel(int readOnly, in SelinuxGetAllLabel() argument
174 handleSelinuxLabel(&node->info, readOnly); in SelinuxGetAllLabel()
179 handleSelinuxLabel(&tmpNode, readOnly); in SelinuxGetAllLabel()
216 static int SelinuxGetParamSecurityLabel(const char *cmd, int readOnly) in SelinuxGetParamSecurityLabel() argument
219 return SelinuxGetAllLabel(readOnly, HandleSelinuxLabelForInit); in SelinuxGetParamSecurityLabel()
221 if ((strcmp(cmd, "init") == 0) && (!readOnly)) { // only for init in SelinuxGetParamSecurityLabel()
222 return SelinuxGetAllLabel(readOnly, HandleSelinuxLabelForOpen); in SelinuxGetParamSecurityLabel()
227 if ((strcmp(cmd, "open") == 0) && readOnly) { // for read only in SelinuxGetParamSecurityLabel()
[all …]
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/device_client/
H A Dcollect_device_client.cpp50 int CollectDeviceClient::GetDeviceFd(bool readOnly) in GetDeviceFd() argument
53 if (readOnly) { in GetDeviceFd()
60 …VIEW_LOGE("Cannot open file=%{public}s, readOnly=%{public}d", UNIFIED_COLLECTION_DEVICE, readOnly); in GetDeviceFd()
63 HIVIEW_LOGD("open ucollection device readOnly=%{public}d successful", readOnly); in GetDeviceFd()
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A Dselinux_share_mem.c23 void *InitSharedMem(const char *fileName, uint32_t spaceSize, bool readOnly) in InitSharedMem() argument
28 int mode = readOnly ? O_RDONLY : O_CREAT | O_RDWR | O_TRUNC; in InitSharedMem()
35 if (!readOnly) { in InitSharedMem()
/ohos5.0/base/startup/init/services/param/linux/
H A Dparam_osadp.c81 …L_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int readOnly) in GetSharedMem() argument
84 int mode = readOnly ? O_RDONLY : O_CREAT | O_RDWR | O_TRUNC; in GetSharedMem()
89 if (!readOnly) { in GetSharedMem()
/ohos5.0/base/startup/init/services/param/liteos/
H A Dparam_osadp.c113 …L_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int readOnly) in GetSharedMem() argument
116 int mode = readOnly ? O_RDONLY : O_CREAT | O_RDWR; in GetSharedMem()
118 if (!readOnly) { in GetSharedMem()
231 …L_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int readOnly) in GetSharedMem() argument
236 UNUSED(readOnly); in GetSharedMem()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_storage_engine.cpp53 if (!option_.readOnly) { in CreateNewExecutor()
190 if (option.createIfNecessary && !option.readOnly) { in OpenGrdDb()
193 if (option.readOnly) { in OpenGrdDb()
/ohos5.0/base/update/updater/services/fs_manager/
H A Dpartitions.cpp129 bool a1 = dev.readOnly; in SetBlockDeviceMode()
130 dev.readOnly = 1; in SetBlockDeviceMode()
133 dev.readOnly = a1; in SetBlockDeviceMode()
137 dev.readOnly = 0; in SetBlockDeviceMode()
262 dev->readOnly = 0; in NewBlockDevice()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_database_rd_kernel_test.cpp263 option.rdconfig.readOnly = false;
309 option.rdconfig.readOnly = false;
325 option.rdconfig.readOnly = true;
362 option.rdconfig.readOnly = true;
450 option.rdconfig.readOnly = true;
473 option.rdconfig.readOnly = true;
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_store_config_test.cpp470 bool readOnly = true; variable
471 config.SetReadOnly(readOnly);
473 EXPECT_EQ(readOnly, retReadOnly);
482 readOnly = false;
483 config.SetReadOnly(readOnly);
485 EXPECT_EQ(readOnly, retReadOnly);
491 readOnly = true;
492 config.SetReadOnly(readOnly);
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dselinux_share_mem.h38 void *InitSharedMem(const char *fileName, uint32_t spaceSize, bool readOnly);
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/
H A Dcollect_device_client.h38 int GetDeviceFd(bool readOnly);
/ohos5.0/base/startup/init/services/param/base/
H A Dparam_trie.c39 static int InitWorkSpace_(WorkSpace *workSpace, uint32_t spaceSize, int readOnly) in InitWorkSpace_() argument
48 void *areaAddr = GetSharedMem(buffer, &workSpace->memHandle, spaceSize, readOnly); in InitWorkSpace_()
50 if (!readOnly) { in InitWorkSpace_()
66readOnly, workSpace->area->currOffset, workSpace->area->firstNode, workSpace->area->dataSize); in InitWorkSpace_()
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/authority/
H A Dauthority_manager.cpp158 bool AuthorityManager::ValidateService(const nlohmann::json& authValJson, bool readOnly) in ValidateService() argument
171 if (readOnly && authVal != AuthValue::AUTH_R) { in ValidateService()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/external/dummy/include/
H A Ddata_access.h101 const std::string &dbUri, bool readOnly = true, bool create = false)
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dsingle_ver_utils.h50 bool readOnly = false; member
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/usb_manager/include/
H A Dusb_manager_proxy.h30 int32_t SetUsbReadOnly(const AppExecFwk::ElementName &admin, bool readOnly);
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/include/authority/
H A Dauthority_manager.h57 bool ValidateService(const nlohmann::json& authValJson, bool readOnly);
/ohos5.0/base/update/updater/services/include/fs_manager/
H A Dpartitions.h77 bool readOnly; member
/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/usb_manager/src/
H A Dusb_manager_proxy.cpp43 int32_t UsbManagerProxy::SetUsbReadOnly(const AppExecFwk::ElementName &admin, bool readOnly) in SetUsbReadOnly() argument
53 data.WriteInt32(readOnly ? 1 : 0); in SetUsbReadOnly()
/ohos5.0/foundation/distributeddatamgr/data_share/test/native/unittest/mediadatashare_test/src/
H A Dabnormal_branch_test.cpp110 bool readOnly = true; variable
111 AppDataFwk::SharedBlock temp(name, nullptr, size, readOnly);
/ohos5.0/base/startup/init/services/param/include/
H A Dparam_osadp.h149 …_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int readOnly);
H A Dparam_manager.h125 INIT_LOCAL_API int OpenWorkSpace(uint32_t index, int readOnly);
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/mock/include/
H A Drdb_store_config.h134 …g(const std::string &path, StorageMode storageMode = StorageMode::MODE_DISK, bool readOnly = false,
158 void SetReadOnly(bool readOnly);
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/
H A Drdb_store_config.h273 bool readOnly = false, const std::vector<uint8_t> &encryptKey = std::vector<uint8_t>(),
361 API_EXPORT void SetReadOnly(bool readOnly);
/ohos5.0/foundation/distributeddatamgr/data_share/frameworks/native/common/src/
H A Dshared_block.cpp31 SharedBlock::SharedBlock(const std::string &name, sptr<Ashmem> ashmem, size_t size, bool readOnly) in SharedBlock() argument
32 : mName(name), ashmem_(ashmem), mSize(size), mReadOnly(readOnly), mHeader(nullptr) in SharedBlock()

12