| /base/startup/appspawn/ |
| D | appdata-sandbox-app.json | 9 "src-path" : "/config", 10 "sandbox-path" : "/config" 12 "src-path" : "/dev", 13 "sandbox-path" : "/dev" 15 "src-path" : "/proc", 16 "sandbox-path" : "/proc" 18 "src-path" : "/sys", 19 "sandbox-path" : "/sys" 21 "src-path" : "/sys_prod", 22 "sandbox-path" : "/sys_prod" [all …]
|
| D | appdata-sandbox-nweb.json | 9 "src-path" : "/dev", 10 "sandbox-path" : "/dev" 12 "src-path" : "/proc", 13 "sandbox-path" : "/proc" 15 "src-path" : "/sys", 16 "sandbox-path" : "/sys" 18 "src-path" : "/system/fonts", 19 "sandbox-path" : "/system/fonts" 21 "src-path" : "/system/etc", 22 "sandbox-path" : "/system/etc" [all …]
|
| D | appdata-sandbox.json | 7 "src-path" : "/config", 8 "sandbox-path" : "/config", 12 "src-path" : "/dev", 13 "sandbox-path" : "/dev", 17 "src-path" : "/proc", 18 "sandbox-path" : "/proc", 22 "src-path" : "/sys", 23 "sandbox-path" : "/sys", 27 "src-path" : "/sys_prod", 28 "sandbox-path" : "/sys_prod", [all …]
|
| D | appdata-sandbox64.json | 8 "src-path" : "/system/lib", 9 "sandbox-path" : "/system/lib", 13 "src-path" : "/system/lib64/platformsdk", 14 "sandbox-path" : "/system/lib64/platformsdk", 18 "src-path" : "/system/lib64/ndk", 19 "sandbox-path" : "/system/lib64/ndk", 23 "src-path" : "/system/lib64/module", 24 "sandbox-path" : "/system/lib64/module", 28 "src-path" : "/system/lib64/chipset-pub-sdk", 29 "sandbox-path" : "/system/lib64/chipset-pub-sdk", [all …]
|
| D | appdata-sandbox-isolated.json | 8 "src-path" : "/dev", 9 "sandbox-path" : "/dev", 13 "src-path" : "/proc", 14 "sandbox-path" : "/proc", 18 "src-path" : "/sys", 19 "sandbox-path" : "/sys", 23 "src-path" : "/system/fonts", 24 "sandbox-path" : "/system/fonts", 28 "src-path" : "/system/etc", 29 "sandbox-path" : "/system/etc", [all …]
|
| D | appdata-sandbox-asan.json | 8 "src-path" : "/system/asan/lib", 9 "sandbox-path" : "/system/asan/lib", 13 "src-path" : "/vendor/asan/lib", 14 "sandbox-path" : "/vendor/asan/lib", 28 "src-path" : "/system/asan/lib64", 29 "sandbox-path" : "/system/asan/lib64", 33 "src-path" : "/vendor/asan/lib64", 34 "sandbox-path" : "/vendor/asan/lib64", 38 "src-path" : "/system/asan/lib", 39 "sandbox-path" : "/system/asan/lib", [all …]
|
| /base/startup/init/services/sandbox/ |
| D | system-sandbox64.json | 4 "src-path" : "/system/bin", 5 "sandbox-path" : "/system/bin", 8 "src-path" : "/system/etc", 9 "sandbox-path" : "/system/etc", 12 "src-path" : "/system/lib64", 13 "sandbox-path" : "/system/lib64", 16 "src-path" : "/system/lib", 17 "sandbox-path" : "/system/lib", 20 "src-path" : "/system/profile", 21 "sandbox-path" : "/system/profile", [all …]
|
| D | system-sandbox.json | 4 "src-path" : "/system/bin", 5 "sandbox-path" : "/system/bin", 8 "src-path" : "/system/etc", 9 "sandbox-path" : "/system/etc", 12 "src-path" : "/system/lib", 13 "sandbox-path" : "/system/lib", 16 "src-path" : "/system/profile", 17 "sandbox-path" : "/system/profile", 20 "src-path" : "/system/app", 21 "sandbox-path" : "/system/app", [all …]
|
| D | chipset-sandbox.json | 4 "src-path" : "/system/bin", 5 "sandbox-path" : "/system/bin", 8 "src-path" : "/system/etc/selinux", 9 "sandbox-path" : "/system/etc/selinux", 12 "src-path" : "/system/lib/chipset-pub-sdk", 13 "sandbox-path" : "/system/lib/chipset-pub-sdk", 16 "src-path" : "/system/lib/chipset-sdk", 17 "sandbox-path" : "/system/lib/chipset-sdk", 20 "src-path" : "/system/lib/ndk", 21 "sandbox-path" : "/system/lib/ndk", [all …]
|
| D | chipset-sandbox64.json | 4 "src-path" : "/system/bin", 5 "sandbox-path" : "/system/bin", 8 "src-path" : "/system/etc", 9 "sandbox-path" : "/system/etc", 12 "src-path" : "/system/lib64", 13 "sandbox-path" : "/system/lib64", 16 "src-path" : "/system/lib", 17 "sandbox-path" : "/system/lib", 20 "src-path" : "/system/profile", 21 "sandbox-path" : "/system/profile", [all …]
|
| /base/web/webview/ |
| D | copy_files.py | 21 WORK_SPACE = os.path.dirname(os.path.abspath(__file__)) 22 PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.dirname(WORK_SPACE))) 24 sys.path.append(os.path.join(PROJECT_DIR, 'build')) 25 sys.path.append(os.path.join(PROJECT_DIR, 'build/hb')) 30 INTERFACE_DIR = os.path.join(WORK_SPACE, 'ohos_interface') 31 INTERFACE_INCLUDE_DIR = os.path.join(INTERFACE_DIR, 'include') 32 INTERFACE_OHOS_GLUE_DIR = os.path.join(INTERFACE_DIR, 'ohos_glue') 37 if os.path.isdir(dst_dir): 40 if os.path.isdir(src_dir) and os.listdir(src_dir): 46 source_files.append(os.path.join(root, name)) [all …]
|
| /base/security/selinux_adapter/scripts/selinux_check/ |
| D | check_data_regex.py | 28 def check_regex_path(path): argument 30 path = re.sub(r'\\\\', '', path) 31 path = re.sub(r'\\/', '/', path) 33 path_elements = path.split('/') 51 path = split_list[0] 52 normalize_path = os.path.normpath(path) 54 if path in whitelist_set: 59 "check '{}' failed in file {}:{}\n".format(path, args.file_contexts, line_index), 62 path, WHITELIST_FILE_NAME, args.policy_dir_list), 63 "2. Modify '{}' to remove the regular expression\n".format(path)) [all …]
|
| D | selinux_check_main.py | 31 request_args.append(os.path.join(args.output_path, "file_contexts")) 34 request_args.append(os.path.join(args.output_path, "all.cil")) 36 request_args.append(os.path.join(args.output_path, "developer/all.cil")) 41 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 44 "-o", os.path.join(args.output_path, "all.cil")] 46 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 49 "-o", os.path.join(args.output_path, "developer/all.cil")] 61 path = os.path.join(args.source_root_dir, i) 62 if (os.path.exists(path)): 63 build_dir_list.append(path) [all …]
|
| /base/account/os_account/frameworks/common/file_operator/src/ |
| D | account_file_operator.cpp | 52 ErrCode AccountFileOperator::CreateDir(const std::string &path, mode_t mode) in CreateDir() argument 56 if (!OHOS::ForceCreateDirectory(path)) { in CreateDir() 57 ACCOUNT_LOGE("failed to create %{public}s, errno %{public}d.", path.c_str(), errno); in CreateDir() 60 SetDirDelFlags(path); in CreateDir() 61 bool createFlag = OHOS::ChangeModeDirectory(path, mode); in CreateDir() 63 … ACCOUNT_LOGE("failed to change mode for %{public}s, errno %{public}d.", path.c_str(), errno); in CreateDir() 70 ErrCode AccountFileOperator::DeleteDirOrFile(const std::string &path) in DeleteDirOrFile() argument 72 if (IsExistDir(path)) { in DeleteDirOrFile() 73 return DeleteDir(path); in DeleteDirOrFile() 75 if (IsExistFile(path)) { in DeleteDirOrFile() [all …]
|
| /base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
| D | app_spawn_cgroup_test.cpp | 65 static int GetTestCGroupFilePath(const AppSpawnedProcess *appInfo, const char *fileName, char *path… in GetTestCGroupFilePath() argument 67 int ret = GetCgroupPath(appInfo, path, PATH_MAX); in GetTestCGroupFilePath() 68 APPSPAWN_CHECK(ret == 0, return errno, "Failed to get real path errno: %{public}d", errno); in GetTestCGroupFilePath() 69 (void)CreateSandboxDir(path, 0755); // 0755 default mode in GetTestCGroupFilePath() 70 ret = strcat_s(path, PATH_MAX, fileName); in GetTestCGroupFilePath() 73 FILE *file = fopen(path, "w"); in GetTestCGroupFilePath() 74 …CHECK(file != nullptr, return errno, "Create file fail %{public}s errno: %{public}d", path, errno); in GetTestCGroupFilePath() 88 char path[PATH_MAX] = {}; variable 89 ret = GetCgroupPath(appInfo, path, sizeof(path)); 90 APPSPAWN_CHECK(ret == 0, break, "Failed to get real path errno: %{public}d", errno); [all …]
|
| /base/security/dlp_permission_service/services/dlp_permission/sa/adapt/ |
| D | file_operator.cpp | 41 int32_t FileOperator::InputFileByPathAndContent(const std::string& path, const std::string& content) in InputFileByPathAndContent() argument 43 std::string str = path; in InputFileByPathAndContent() 54 …DLP_LOG_INFO(LABEL, "path need to be canonical, str %{public}s realPath %{public}s.", str.c_str(),… in InputFileByPathAndContent() 58 FILE* fp = fopen(path.c_str(), "wb"); in InputFileByPathAndContent() 60 DLP_LOG_INFO(LABEL, "failed to open %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent() 65 DLP_LOG_INFO(LABEL, "failed to fwrite %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent() 70 DLP_LOG_INFO(LABEL, "failed to fflush %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent() 75 DLP_LOG_INFO(LABEL, "failed to fsync %{public}s, errno %{public}d.", path.c_str(), errno); in InputFileByPathAndContent() 82 if (!ChangeModeFile(path, S_IRUSR | S_IWUSR)) { in InputFileByPathAndContent() 83 …DLP_LOG_INFO(LABEL, "failed to change mode for file %{public}s, errno %{public}d.", path.c_str(), … in InputFileByPathAndContent() [all …]
|
| /base/inputmethod/imf/services/file/src/ |
| D | file_operator.cpp | 27 bool FileOperator::Create(const std::string &path, mode_t mode) in Create() argument 29 auto ret = mkdir(path.c_str(), mode); in Create() 31 IMSA_HILOGE("%{public}s mkdir failed, errno:%{public}d!", path.c_str(), errno); in Create() 37 bool FileOperator::IsExist(const std::string &path) in IsExist() argument 39 return access(path.c_str(), F_OK) == SUCCESS; in IsExist() 42 bool FileOperator::Read(const std::string &path, std::string &content) in Read() argument 44 std::ifstream file(path); in Read() 46 IMSA_HILOGE("%{public}s open fail!", path.c_str()); in Read() 56 bool FileOperator::Write(const std::string &path, const std::string &content, int32_t flags, mode_t… in Write() argument 59 auto fd = open(path.c_str(), flags, mode); in Write() [all …]
|
| /base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/include/ |
| D | cert_manager_file_operator.h | 33 uint32_t CmFileRead(const char *path, const char *fileName, uint32_t offset, uint8_t *buf, uint32_t… 35 int32_t CmFileWrite(const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, ui… 38 const char *path, const char *fileName, uint32_t offset, const uint8_t *buf, uint32_t len); 40 int32_t CmFileRemove(const char *path, const char *fileName); 42 uint32_t CmFileSize(const char *path, const char *fileName); 44 int32_t CmIsFileExist(const char *path, const char *fileName); 46 int32_t CmMakeDir(const char *path); 51 * @param[in] path Directory absolute path 58 int32_t CmUserBakupMakeDir(const char *path, const mode_t *mode); 60 void *CmOpenDir(const char *path); [all …]
|
| /base/security/selinux_adapter/scripts/ |
| D | build_policy_api.py | 75 folder_list.append(os.path.join(root, dir_i)) 85 path = os.path.join(root, each_file) 86 rel_path = os.path.relpath(path, build_root) 149 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 290 build_policy_cmd = [os.path.join(tool_path, "secilc"), 301 …build_policy_list = [os.path.join(sepolicy_path, "base"), os.path.join(sepolicy_path, "ohos_policy… 307 path = os.path.join(root_dir, i) 308 if (os.path.exists(path)): 309 build_dir_list.append(path) 311 print("following path not exists!! {}".format(path)) [all …]
|
| /base/global/system_resources/systemres/main/resources/base/media/ |
| D | ohos_ic_normal_white_grid_compress.svg | 5 …path d="M16.4285714,0 L196.612403,0 L196.612403,0 L196.468677,65.674268 C196.446576,75.773165 204.… 6 …path d="M196.428571,0 L280.428571,84 L214.714286,84 C204.615365,84 196.428571,75.8132069 196.42857… 8 …path d="M16,64 L41,64 C42.6568542,64 44,65.3431458 44,67 L44,77 C44,78.6568542 42.6568542,80 41,80… 9 …<path d="M16,96 L41,96 C42.6568542,96 44,97.3431458 44,99 L44,112 L44,112 L16,112 L16,96 Z" id="Re… 10 …path d="M0,48 L25,48 C26.6568542,48 28,49.3431458 28,51 L28,61 C28,62.6568542 26.6568542,64 25,64 … 11 …path d="M19,32 L44,32 L44,32 L44,48 L19,48 C17.3431458,48 16,46.6568542 16,45 L16,35 C16,33.343145… 12 …path d="M16,0 L44,0 L44,16 L19,16 C17.3431458,16 16,14.6568542 16,13 L16,0 L16,0 Z" id="Rectangle-… 13 …path d="M0,16 L25,16 C26.6568542,16 28,17.3431458 28,19 L28,29 C28,30.6568542 26.6568542,32 25,32 … 14 …path d="M0,80 L25,80 C26.6568542,80 28,81.3431458 28,83 L28,93 C28,94.6568542 26.6568542,96 25,96 … 15 …path d="M44,112 L44,138.122449 C44,141.368531 41.3685308,144 38.122449,144 L5.87755102,144 C2.6314…
|
| D | ohos_ic_normal_white_grid_zip.svg | 5 …path d="M16.4285714,0 L196.612403,0 L196.612403,0 L196.468677,65.674268 C196.446576,75.773165 204.… 6 …path d="M196.428571,0 L280.428571,84 L214.714286,84 C204.615365,84 196.428571,75.8132069 196.42857… 8 …path d="M82.1470588,30.1764706 L98.0172917,30.1764706 C106.650618,30.1764706 113.649312,23.4564435… 13 …path d="M16,64 L41,64 C42.6568542,64 44,65.3431458 44,67 L44,77 C44,78.6568542 42.6568542,80 41,80… 14 …<path d="M16,96 L41,96 C42.6568542,96 44,97.3431458 44,99 L44,112 L44,112 L16,112 L16,96 Z" id="Re… 15 …path d="M0,48 L25,48 C26.6568542,48 28,49.3431458 28,51 L28,61 C28,62.6568542 26.6568542,64 25,64 … 16 …path d="M19,32 L44,32 L44,32 L44,48 L19,48 C17.3431458,48 16,46.6568542 16,45 L16,35 C16,33.343145… 17 …path d="M16,0 L44,0 L44,16 L19,16 C17.3431458,16 16,14.6568542 16,13 L16,0 L16,0 Z" id="Rectangle-… 18 …path d="M0,16 L25,16 C26.6568542,16 28,17.3431458 28,19 L28,29 C28,30.6568542 26.6568542,32 25,32 … 19 …path d="M0,80 L25,80 C26.6568542,80 28,81.3431458 28,83 L28,93 C28,94.6568542 26.6568542,96 25,96 … [all …]
|
| /base/security/code_signature/interfaces/innerkits/code_sign_utils/include/ |
| D | code_sign_utils.h | 46 * @param entryPath map from entryname in hap to real path on disk 47 * @param signatureFile signature file path 55 * @param path hap real path on disk 56 * @param entryPath map from entryname in hap to real path on disk 60 …int32_t EnforceCodeSignForApp(const std::string &path, const EntryMap &entryPathMap, FileType type… 65 * @param path hap real path on disk 66 * @param entryPath map from entryname in hap to real path on disk 70 int32_t EnforceCodeSignForAppWithOwnerId(const std::string &ownerId, const std::string &path, 75 * @param path file path 80 …static int32_t EnforceCodeSignForFile(const std::string &path, const uint8_t *signature, const uin… [all …]
|
| /base/hiviewdfx/hiview/base/utility/ |
| D | file_util.cpp | 103 std::string IncludeTrailingPathDelimiter(const std::string& path) in IncludeTrailingPathDelimiter() argument 105 return OHOS::IncludeTrailingPathDelimiter(path); in IncludeTrailingPathDelimiter() 108 std::string ExcludeTrailingPathDelimiter(const std::string& path) in ExcludeTrailingPathDelimiter() argument 110 return OHOS::ExcludeTrailingPathDelimiter(path); in ExcludeTrailingPathDelimiter() 113 void GetDirFiles(const std::string& path, std::vector<std::string>& files, bool isRecursive) in GetDirFiles() argument 115 DIR* dir = opendir(path.c_str()); in GetDirFiles() 130 … std::string pathStringWithDelimiter = IncludeTrailingPathDelimiter(path) + string(ptr->d_name); in GetDirFiles() 133 files.push_back(IncludeTrailingPathDelimiter(path) + string(ptr->d_name)); in GetDirFiles() 139 void GetDirDirs(const std::string& path, std::vector<std::string>& dirs) in GetDirDirs() argument 141 DIR* dir = opendir(path.c_str()); in GetDirDirs() [all …]
|
| /base/update/update_app/ |
| D | OAT.xml | 21 basedir: Root dir, the basedir + project path is the real source file location. 30 5. task project: Projects to be checked, the path field define the source root dir of the project. 35 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilte… 36 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPoli… 38 "compatibility" is used to check license compatibility in the specified path; 39 "license" is used to check source license header in the specified path; 40 "copyright" is used to check source copyright header in the specified path; 41 … "import" is used to check source dependency in the specified path, such as import ... ,include ... 42 … "filetype" is used to check file type in the specified path, supported file types: archive, binary 43 …"filename" is used to check whether the specified file exists in the specified path(support projec… [all …]
|
| /base/security/huks/utils/file_iterative_reader/src/ |
| D | hks_iterative_reader.c | 39 HKS_FREE(info->path); in HksFreeFileInfo() 94 static int32_t AppendFilePath(const char *path, const char *fileName, struct HksReadFileInfoList *i… in AppendFilePath() argument 103 info->path = (char *)HksMalloc(strlen(path) + 1); in AppendFilePath() 104 HKS_IF_NULL_BREAK(info->path) in AppendFilePath() 107 (void)memcpy_s(info->path, strlen(path), path, strlen(path)); in AppendFilePath() 136 static int32_t HksGetOldStoreFileInfo(const char *path, struct HksReadFileInfoList *infos) in HksGetOldStoreFileInfo() argument 138 DIR *dir = opendir(path); in HksGetOldStoreFileInfo() 140 HKS_LOG_E("open dir %" LOG_PUBLIC "s failed.", path); in HksGetOldStoreFileInfo() 152 ret = ConstructSubPath(ptr, path, subPath); in HksGetOldStoreFileInfo() 154 HKS_LOG_E("construct src and target path failed!"); in HksGetOldStoreFileInfo() [all …]
|