| /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.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-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-isolated-new.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-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-sandbox64.json | 8 "src-path" : "/system/lib64", 9 "sandbox-path" : "/system/lib64", 13 "src-path" : "/system/asan/lib64", 14 "sandbox-path" : "/system/asan/lib64", 18 "src-path" : "/vendor/lib64", 19 "sandbox-path" : "/vendor/lib64", 23 "src-path" : "/vendor/asan/lib64", 24 "sandbox-path" : "/vendor/asan/lib64", 28 "src-path" : "/chip_prod/lib64/passthrough", 29 "sandbox-path" : "/chip_prod/lib64/passthrough", [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') 36 if os.path.isdir(dst_dir): 39 if os.path.isdir(src_dir) and os.listdir(src_dir): 45 source_files.append(os.path.join(root, name)) [all …]
|
| /base/startup/appspawn/modules/sandbox/ |
| D | sandbox_adapter.cpp | 30 string path(originPath); in MakeAtomicServiceDir() local 31 if (path.find("/mnt/share") != string::npos) { in MakeAtomicServiceDir() 32 …path = "/data/service/el2/" + to_string(dacInfo->uid / UID_BASE) + "/share/" + string(varPackageNa… in MakeAtomicServiceDir() 34 if (access(path.c_str(), F_OK) == 0) { in MakeAtomicServiceDir() 35 APPSPAWN_LOGV("path %{public}s already exist, no need to recreate", path.c_str()); in MakeAtomicServiceDir() 38 int ret = mkdir(path.c_str(), S_IRWXU); in MakeAtomicServiceDir() 39 …APPSPAWN_CHECK(ret == 0, return, "mkdir %{public}s failed, errno %{public}d", path.c_str(), errno); in MakeAtomicServiceDir() 41 if (path.find("/database") != string::npos || path.find("/data/service/el2") != string::npos) { in MakeAtomicServiceDir() 42 ret = chmod(path.c_str(), S_IRWXU | S_IRWXG | S_ISGID); in MakeAtomicServiceDir() 43 } else if (path.find("/log") != string::npos) { in MakeAtomicServiceDir() [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 | 54 ErrCode AccountFileOperator::CreateDir(const std::string &path, mode_t mode) in CreateDir() argument 58 if (!OHOS::ForceCreateDirectory(path)) { in CreateDir() 59 ACCOUNT_LOGE("failed to create %{public}s, errno %{public}d.", path.c_str(), errno); in CreateDir() 62 SetDirDelFlags(path); in CreateDir() 63 bool createFlag = OHOS::ChangeModeDirectory(path, mode); in CreateDir() 65 … ACCOUNT_LOGE("failed to change mode for %{public}s, errno %{public}d.", path.c_str(), errno); in CreateDir() 72 ErrCode AccountFileOperator::DeleteDirOrFile(const std::string &path) in DeleteDirOrFile() argument 74 if (IsExistDir(path)) { in DeleteDirOrFile() 75 return DeleteDir(path); in DeleteDirOrFile() 77 if (IsExistFile(path)) { in DeleteDirOrFile() [all …]
|
| /base/startup/init/services/init/ |
| D | init_cgroup.c | 31 INIT_LOGV("Cgroup path %s ", buffer); in GetCgroupPath() 35 static int WriteToFile(const char *path, pid_t pid) in WriteToFile() argument 39 int fd = open(path, O_RDWR | O_APPEND); in WriteToFile() 40 INIT_ERROR_CHECK(fd >= 0, return -1, "Failed to open file errno: %d path: %s", errno, path); in WriteToFile() 47 …INIT_ERROR_CHECK(ret > 0, break, "Failed to write file errno: %d path: %s %s", errno, path, pidNam… in WriteToFile() 55 static void KillProcessesByCGroup(const char *path, Service *service) in KillProcessesByCGroup() argument 57 FILE *file = fopen(path, "r"); in KillProcessesByCGroup() 58 INIT_ERROR_CHECK(file != NULL, return, "Open file fail %s errno: %d", path, errno); in KillProcessesByCGroup() 80 char path[PATH_MAX] = {}; in DoRmdir() local 81 int ret = GetCgroupPath(service, path, sizeof(path)); in DoRmdir() [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_utils/file_manager/ |
| 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 | 26 bool FileOperator::Create(const std::string &path, mode_t mode) in Create() argument 28 auto ret = mkdir(path.c_str(), mode); in Create() 30 IMSA_HILOGE("%{public}s mkdir failed, errno:%{public}d!", path.c_str(), errno); in Create() 36 bool FileOperator::IsExist(const std::string &path) in IsExist() argument 38 return access(path.c_str(), F_OK) == SUCCESS; in IsExist() 41 bool FileOperator::Read(const std::string &path, std::string &content) in Read() argument 43 std::ifstream file(path); in Read() 45 IMSA_HILOGE("%{public}s open fail!", path.c_str()); in Read() 55 bool FileOperator::Write(const std::string &path, const std::string &content, int32_t flags, mode_t… in Write() argument 67 FILE* file = fopen(path.c_str(), fopenMode); 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…
|
| /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/startup/appspawn/service/hnp/base/ |
| D | hnp_file.c | 118 HNP_LOGE("realpath unsuccess. path=%{public}s", srcPath); in GetRealPath() 122 HNP_LOGE("realpath over max path len. len=%{public}d", (int)strlen(dstTmpPath)); in GetRealPath() 132 static int HnpDeleteAllFileInPath(const char *path, DIR *dir) in HnpDeleteAllFileInPath() argument 147 ret = sprintf_s(filePath, MAX_FILE_PATH_LEN, "%s/%s", path, entry->d_name); in HnpDeleteAllFileInPath() 149 …HNP_LOGE("delete folder sprintf path[%{public}s], file[%{public}s] unsuccess.", path, entry->d_nam… in HnpDeleteAllFileInPath() 167 … HNP_LOGE("delete file unsuccess.ret=%{public}d, path=%{public}s, errno=%{public}d", ret, filePath, in HnpDeleteAllFileInPath() 178 int HnpDeleteFolder(const char *path) in HnpDeleteFolder() argument 180 if (access(path, F_OK) != 0) { in HnpDeleteFolder() 183 DIR *dir = opendir(path); in HnpDeleteFolder() 185 HNP_LOGE("delete folder open dir=%{public}s unsuccess ", path); in HnpDeleteFolder() [all …]
|