Home
last modified time | relevance | path

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

/base/startup/init/services/param/adapter/
Dparam_selinux.c133 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/
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()
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/device_client/
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()
/base/startup/init/services/param/linux/
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()
/base/startup/init/services/param/liteos/
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()
/base/security/selinux_adapter/interfaces/policycoreutils/include/
Dselinux_share_mem.h38 void *InitSharedMem(const char *fileName, uint32_t spaceSize, bool readOnly);
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/inner_include/
Dcollect_device_client.h38 int GetDeviceFd(bool readOnly);
/base/update/updater/services/fs_manager/
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()
Ddo_partition.cpp83 if (disk.dev->readOnly) { in BlockSync()
/base/customization/enterprise_device_management/interfaces/inner_api/usb_manager/include/
Dusb_manager_proxy.h27 int32_t SetUsbReadOnly(const AppExecFwk::ElementName &admin, bool readOnly);
/base/update/updater/services/include/fs_manager/
Dpartitions.h77 bool readOnly; member
/base/customization/enterprise_device_management/interfaces/inner_api/usb_manager/src/
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()
/base/startup/init/services/param/include/
Dparam_osadp.h149 …_API void *GetSharedMem(const char *fileName, MemHandle *handle, uint32_t spaceSize, int readOnly);
Dparam_manager.h120 INIT_LOCAL_API int OpenWorkSpace(uint32_t index, int readOnly);
/base/startup/init/services/param/base/
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_()
Dparam_base.c338 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/
Dusb_manager_addon.cpp48 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/
Dappspawn_service.c333 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()