/base/hiviewdfx/faultloggerd/utils/ |
D | directory_ex.cpp | 120 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/ |
D | init_mount.c | 42 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/ |
D | updater_utils.cpp | 131 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/ |
D | README.md | 14 AccessTokenManager (ATM) provides unified app permission management based on access tokens on OpenH… 16 …access 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/ |
D | test_common.cpp | 36 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/ |
D | surface_dev.cpp | 53 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/ |
D | cmds_unittest.cpp | 104 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/ |
D | cellular_data_code_test.cpp | 261 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/ |
D | hap_domain.te | 62 #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/ |
D | updater_ui_env.cpp | 98 if (access(brightnessFile, R_OK | W_OK) != 0 || access(maxBrightnessFile, R_OK) != 0) { in InitBrightness()
|
/base/powermgr/thermal_manager/utils/native/src/ |
D | file_operation.cpp | 34 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/ |
D | file_utils.cpp | 29 if (!access(path.c_str(), F_OK) || path == "") { in CreateFolder()
|
/base/location/ |
D | README.en.md | 34 …base stations. This technology provides only a low accuracy and requires access to the cellular ne… 38 …access points \(APs\) and Bluetooth devices around the device. A high density of WLAN APs and Blue… 62 …access 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/ |
D | hc_file.c | 52 if (access(dirCache, F_OK) != 0) { in CreateDirectory() 71 if (access(path, F_OK) != 0) { in HcFileOpenWrite()
|
/base/security/permission_lite/ |
D | README.md | 14 …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/ |
D | webview_controller.cpp | 53 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/ |
D | thermal_action_report_test.cpp | 426 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/ |
D | hc_file_posix.c | 49 if (access(dirCache, F_OK) == 0) { in CreateDirectory() 75 if (access(path, F_OK) != 0) { in HcFileOpenWrite()
|
/base/startup/init/ueventd/ |
D | ueventd_main.c | 70 if (access(UEVENTD_FLAG, F_OK)) { in main()
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | main.cpp | 83 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/ |
D | file_util.cpp | 107 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/ |
D | README-en.md | 5 … 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/ |
D | updaterkits.cpp | 56 if (access(path.c_str(), R_OK) < 0) { in RebootAndInstallUpgradePackage()
|
/base/hiviewdfx/hiview/adapter/utility/platform/linux/ |
D | file_util.cpp | 49 if (access(fileName.c_str(), F_OK) != 0) { in ChangeModeFile()
|
/base/hiviewdfx/hidumper/frameworks/native/ |
D | dump_utils.cpp | 151 if (access(path, F_OK) == 0) { // can be read in CheckProcessAlive() 208 return access(path.c_str(), F_OK) == 0; in PathIsValid()
|