/base/startup/init/services/param/adapter/ |
D | param_selinux.c | 133 static void HandleSelinuxLabelForOpen(const ParameterNode *paramNode, int readOnly) in HandleSelinuxLabelForOpen() argument 136 int ret = OpenWorkSpace(labelIndex, readOnly); in HandleSelinuxLabelForOpen() 141 if (!readOnly) { in HandleSelinuxLabelForOpen() 147 static void HandleSelinuxLabelForInit(const ParameterNode *paramNode, int readOnly) in HandleSelinuxLabelForInit() argument 150 int ret = AddWorkSpace(paramNode->paraContext, labelIndex, readOnly, 0); in HandleSelinuxLabelForInit() 160 int SelinuxGetAllLabel(int readOnly, in SelinuxGetAllLabel() argument 161 void (*handleSelinuxLabel)(const ParameterNode *paramNode, int readOnly)) in SelinuxGetAllLabel() 174 handleSelinuxLabel(&node->info, readOnly); in SelinuxGetAllLabel() 179 handleSelinuxLabel(&tmpNode, readOnly); in SelinuxGetAllLabel() 184 static void HandleSelinuxLabelForPermission(const ParameterNode *paramNode, int readOnly) in HandleSelinuxLabelForPermission() argument [all …]
|
/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
D | selinux_share_mem.c | 23 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()
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/device_client/ |
D | collect_device_client.cpp | 50 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()
|
/base/startup/init/services/param/linux/ |
D | param_osadp.c | 81 …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()
|
/base/startup/init/services/param/liteos/ |
D | param_osadp.c | 113 …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()
|
/base/security/selinux_adapter/interfaces/policycoreutils/include/ |
D | selinux_share_mem.h | 38 void *InitSharedMem(const char *fileName, uint32_t spaceSize, bool readOnly);
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/ |
D | collect_device_client.h | 38 int GetDeviceFd(bool readOnly);
|
/base/update/updater/services/fs_manager/ |
D | partitions.cpp | 129 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()
|
D | do_partition.cpp | 83 if (disk.dev->readOnly) { in BlockSync()
|
/base/customization/enterprise_device_management/interfaces/inner_api/usb_manager/include/ |
D | usb_manager_proxy.h | 27 int32_t SetUsbReadOnly(const AppExecFwk::ElementName &admin, bool readOnly);
|
/base/update/updater/services/include/fs_manager/ |
D | partitions.h | 77 bool readOnly; member
|
/base/customization/enterprise_device_management/interfaces/inner_api/usb_manager/src/ |
D | usb_manager_proxy.cpp | 43 int32_t UsbManagerProxy::SetUsbReadOnly(const AppExecFwk::ElementName &admin, bool readOnly) in SetUsbReadOnly() argument 53 data.WriteInt32(readOnly ? 1 : 0); in SetUsbReadOnly()
|
/base/startup/init/services/param/include/ |
D | param_osadp.h | 149 …_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int readOnly);
|
D | param_manager.h | 120 INIT_LOCAL_API int OpenWorkSpace(uint32_t index, int readOnly);
|
/base/startup/init/services/param/base/ |
D | param_trie.c | 39 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_() 66 … readOnly, workSpace->area->currOffset, workSpace->area->firstNode, workSpace->area->dataSize); in InitWorkSpace_()
|
D | param_base.c | 338 INIT_LOCAL_API int OpenWorkSpace(uint32_t index, int readOnly) in OpenWorkSpace() argument 354 ret = InitWorkSpace(workSpace, readOnly, workSpace->spaceSize); in OpenWorkSpace() 362 } else if (readOnly) { in OpenWorkSpace()
|
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/src/ |
D | usb_manager_addon.cpp | 48 napi_value readOnly; in CreateUsbPolicyEnum() local 49 …LL_RETURN_VOID(env, napi_create_int32(env, EdmConstants::STORAGE_USB_POLICY_READ_ONLY, &readOnly)); in CreateUsbPolicyEnum() 50 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, value, "READ_ONLY", readOnly)); in CreateUsbPolicyEnum()
|
/base/startup/appspawn/standard/ |
D | appspawn_service.c | 333 static char *GetMapMem(uint32_t clientId, const char *processName, uint32_t size, bool readOnly, bo… in GetMapMem() argument 342 if (!readOnly) { in GetMapMem() 348 if (!readOnly) { in GetMapMem()
|