Home
last modified time | relevance | path

Searched refs:access (Results 1 – 25 of 118) sorted by relevance

12345

/base/hiviewdfx/faultloggerd/utils/
Ddirectory_ex.cpp120 if (access(subPath.c_str(), F_OK) != 0) { in ForceCreateDirectory()
127 return access(path.c_str(), F_OK) == 0; in ForceCreateDirectory()
153 if (access(subPath.c_str(), F_OK) == 0) { in ForceRemoveDirectory()
164 if (access(currentPath.c_str(), F_OK) == 0) { in ForceRemoveDirectory()
170 return ret && (access(path.c_str(), F_OK) != 0); in ForceRemoveDirectory()
175 if (access(fileName.c_str(), F_OK) == 0) { in RemoveFile()
212 if (access(fileName.c_str(), F_OK) != 0) { in ChangeModeFile()
242 if (access(subPath.c_str(), F_OK) == 0) { in ChangeModeDirectory()
252 if (access(currentPath.c_str(), F_OK) == 0) { in ChangeModeDirectory()
276 if (access(realPath.c_str(), F_OK) != 0) { in PathToRealPath()
/base/startup/init/services/init/standard/
Dinit_mount.c42 INIT_CHECK(access(fstabFile, F_OK) == 0, fstabFile = "/system/etc/fstab.required"); in LoadRequiredFstab()
44 INIT_ERROR_CHECK(access(fstabFile, F_OK) == 0, abort(), "Failed get fstab.required"); in LoadRequiredFstab()
/base/update/updater/services/
Dupdater_utils.cpp131 if (!access(COMMAND_FILE, 0)) { in PostUpdater()
136 if (access(UPDATER_PATH, 0) == 0 && access(SDCARD_CARD_PATH, 0) != 0) { in PostUpdater()
139 if (!access(SDCARD_CARD_PATH, 0)) { in PostUpdater()
142 if (access(Flashd::FLASHD_FILE_PATH, 0) == 0) { in PostUpdater()
173 if (boot.update[0] == '\0' && !access(COMMAND_FILE, 0)) { in ParseParams()
/base/security/access_token/
DREADME.md14 AccessTokenManager (ATM) provides unified app permission management based on access tokens on OpenH…
16access token information of an app includes the app identifier (**APPID**), user ID, app twin inde…
20 - Obtaining access token information (for example, APL) based on the token ID.
28 │ ├── tokensync # Stores code of the access token synchronization framework.
32 │ ├── accesstoken # Stores code of access token internal APIs.
34 │ └── tokensync # Stores code of the internal APIs for access token synchronization.
37 └── tokensyncmanager # Stores code of the access token synchronization service.
49 | int GetTokenType(AccessTokenID tokenID); | Obtains the type of an access token.|
54 …TokenID tokenID, const std::string& permissionName); | Checks whether an access token has the spec…
65 ATM provides unified access control for apps and allows apps or service abilities to obtain and ver…
[all …]
/base/security/selinux/test/unittest/common/
Dtest_common.cpp36 if (access(subPath.c_str(), F_OK) != 0) { in CreateDirectory()
43 return access(path.c_str(), F_OK) == 0; in CreateDirectory()
54 if (access(path.c_str(), F_OK) != 0) { in RemoveDirectory()
100 if (access(path.c_str(), F_OK) != 0) { in CreateFile()
108 return access(path.c_str(), F_OK) == 0; in CreateFile()
/base/update/updater/services/ui/driver/
Dsurface_dev.cpp53 if (access(DRM_DEV_PATH, 0) == 0) { in GetDevType()
55 } else if (access(FB_DEV_PATH, 0) == 0) { in GetDevType()
/base/startup/init/test/unittest/init/
Dcmds_unittest.cpp104 return access(mkdirFile, F_OK); in __anon264505320102()
164 int ret = access(testFile2, F_OK);
195 int ret = access(testFile1, F_OK);
200 ret = access(testFile1, F_OK);
234 int ret = access("/data/init_ut/test_cmd_dir0", F_OK);
/base/telephony/cellular_data/test/unit_test/
Dcellular_data_code_test.cpp261 if (access("/data/iface_tx_p", F_OK) == 0) { in TestDataPackageUp()
265 if (access("/data/iface_tx_p", F_OK) != 0) { in TestDataPackageUp()
274 if (access("/data/iface_rx_p", F_OK) == 0) { in TestDataPackageDown()
278 if (access("/data/iface_tx_p", F_OK) != 0) { in TestDataPackageDown()
287 if (access("/data/iface_tx_p", F_OK) == 0 || access("/data/iface_rx_p", F_OK) == 0) { in TestDataPackageUpDown()
/base/security/selinux/sepolicy/base/public/
Dhap_domain.te62 #limit hap access vendor.
65 #hap never access blk_file.
68 #limit hap access dev file.
105 #limit access to system_core_hap_data_file
110 #limit access to system_basic_hap_data_file
115 #limit access to normal_hap_data_file
144 # limit access to /data/(*)? first level.todo
/base/update/updater/services/ui/
Dupdater_ui_env.cpp98 if (access(brightnessFile, R_OK | W_OK) != 0 || access(maxBrightnessFile, R_OK) != 0) { in InitBrightness()
/base/powermgr/thermal_manager/utils/native/src/
Dfile_operation.cpp34 if (access(dir.c_str(), 0) != ERR_OK) { in CreateNodeDir()
50 if (access(filePath.c_str(), 0) != 0) { in CreateNodeFile()
/base/hiviewdfx/hidumper/frameworks/native/src/util/
Dfile_utils.cpp29 if (!access(path.c_str(), F_OK) || path == "") { in CreateFolder()
/base/location/
DREADME.en.md34 …base stations. This technology provides only a low accuracy and requires access to the cellular ne…
38access points \(APs\) and Bluetooth devices around the device. A high density of WLAN APs and Blue…
62access permission from the user even if the user has turned on the location function. The system w…
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
Dhc_file.c52 if (access(dirCache, F_OK) != 0) { in CreateDirectory()
71 if (access(path, F_OK) != 0) { in HcFileOpenWrite()
/base/security/permission_lite/
DREADME.md14 …he sandboxes provide some APIs to implement specific functionalities. To access these APIs across …
16 …services and apps to define new permissions for their sensitive APIs. To access these APIs, other …
18 …ed by the system or other apps. Upon obtaining the permissions, apps can access the sensitive APIs…
141 …0"></a>Checks whether the app with a specified UID has the permission to access system service API…
146 …name="p937645212447"></a>Checks whether the caller has the permission to access system service API…
195 …510"><a name="p749582195510"></a><a name="p749582195510"></a>Obtains the access policies of a serv…
200 …me="p134951921115511"></a>Checks whether a process has the permission to access an API of another …
292 This section uses the bundle manager as an example to describe how to configure access policies for…
294 1. <a name="li15901515152517"></a>Configure access policies in the **base/security/permission\_li…
296 …1. **RANGE**: Processes with a specified range of UIDs can access BMS APIs. **uidMin** and **u…
[all …]
/base/web/webview/interfaces/kits/napi/webviewcontroller/
Dwebview_controller.cpp53 bool access = false; in AccessForward() local
56 access = nweb_ptr->IsNavigateForwardAllowed(); in AccessForward()
58 return access; in AccessForward()
63 bool access = false; in AccessBackward() local
66 access = nweb_ptr->IsNavigatebackwardAllowed(); in AccessBackward()
68 return access; in AccessBackward()
73 bool access = false; in AccessStep() local
76 access = nweb_ptr->CanNavigateBackOrForward(step); in AccessStep()
78 return access; in AccessStep()
/base/powermgr/thermal_manager/services/native/test/unittest/src/
Dthermal_action_report_test.cpp426 if (access(VENDOR_CONFIG, 0) != 0) {
466 if (access(VENDOR_CONFIG, 0) != 0) {
506 if (access(VENDOR_CONFIG, 0) != 0) {
546 if (access(VENDOR_CONFIG, 0) != 0) {
586 if (access(VENDOR_CONFIG, 0) != 0) {
626 if (access(VENDOR_CONFIG, 0) != 0) {
666 if (access(VENDOR_CONFIG, 0) != 0) {
706 if (access(VENDOR_CONFIG, 0) != 0) {
746 if (access(VENDOR_CONFIG, 0) != 0) {
787 if (access(VENDOR_CONFIG, 0) != 0) {
[all …]
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/mini/
Dhc_file_posix.c49 if (access(dirCache, F_OK) == 0) { in CreateDirectory()
75 if (access(path, F_OK) != 0) { in HcFileOpenWrite()
/base/startup/init/ueventd/
Dueventd_main.c70 if (access(UEVENTD_FLAG, F_OK)) { in main()
/base/hiviewdfx/hilog/services/hilogd/
Dmain.cpp83 if (!access(path.c_str(), W_OK)) { in WriteStringToFile()
95 if (access(filePath.c_str(), W_OK)) { in WriteStringToFile()
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/
Dfile_util.cpp107 if (access(subPath.c_str(), F_OK) != 0) { in ForceCreateDirectory()
113 return access(path.c_str(), F_OK) == 0; in ForceCreateDirectory()
145 if (access(fileName.c_str(), F_OK) != 0) { in ChangeModeFile()
/base/security/selinux/
DREADME-en.md5 … a set of kernel modifications and user-space tools supporting mandatory access control (MAC) base…
7 The flow of access control shown in following figure:
84 …missive is set to 0, the SELinux is running in enforcing mode and denies access based on SELinux p…
90 Obtain the access information based on the AVC message.
/base/update/updater/interfaces/kits/updaterkits/
Dupdaterkits.cpp56 if (access(path.c_str(), R_OK) < 0) { in RebootAndInstallUpgradePackage()
/base/hiviewdfx/hiview/adapter/utility/platform/linux/
Dfile_util.cpp49 if (access(fileName.c_str(), F_OK) != 0) { in ChangeModeFile()
/base/hiviewdfx/hidumper/frameworks/native/
Ddump_utils.cpp151 if (access(path, F_OK) == 0) { // can be read in CheckProcessAlive()
208 return access(path.c_str(), F_OK) == 0; in PathIsValid()

12345