Home
last modified time | relevance | path

Searched full:path (Results 1 – 25 of 2282) sorted by relevance

12345678910>>...92

/base/startup/appspawn/
Dappdata-sandbox-app.json9 "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 …]
Dappdata-sandbox.json7 "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 …]
Dappdata-sandbox-gpu.json9 "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 …]
Dappdata-sandbox-render.json9 "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 …]
Dappdata-sandbox-asan.json8 "src-path" : "/system/asan/lib",
9 "sandbox-path" : "/system/asan/lib",
13 "src-path" : "/vendor/asan/lib",
14 "sandbox-path" : "/vendor/asan/lib",
18 "src-path" : "/system/asan/bin",
19 "sandbox-path" : "/system/asan/bin",
33 "src-path" : "/system/asan/lib64",
34 "sandbox-path" : "/system/asan/lib64",
38 "src-path" : "/vendor/asan/lib64",
39 "sandbox-path" : "/vendor/asan/lib64",
[all …]
Dappdata-sandbox-isolated-new.json9 "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 …]
Dappdata-sandbox-isolated.json8 "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 …]
Dappdata-sandbox64.json8 "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 …]
Dappdata-sandbox-debug.json9 "src-path" : "/data/app/el1/<currentUserId>/base/<variablePackageName>",
10 "sandbox-path" : "/data/storage/el1/base"
12 "src-path" : "/data/app/el1/<currentUserId>/database/<variablePackageName>",
13 "sandbox-path" : "/data/storage/el1/database"
15 "src-path" : "/data/app/el2/<currentUserId>/base/<variablePackageName>",
16 "sandbox-path" : "/data/storage/el2/base"
18 "src-path" : "/data/app/el2/<currentUserId>/database/<variablePackageName>",
19 "sandbox-path" : "/data/storage/el2/database"
27 "src-path" : "/data/app/el5/<currentUserId>/base/<variablePackageName>",
28 "sandbox-path" : "/data/storage/el5/base"
[all …]
/base/startup/init/services/sandbox/
Dsystem-sandbox.json4 "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 …]
Dchipset-sandbox.json4 "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",
13 "sandbox-path" : "/system/lib",
16 "src-path" : "/vendor",
17 "sandbox-path" : "/vendor",
20 "src-path" : "/dev",
21 "sandbox-path" : "/dev",
[all …]
Dsystem-sandbox64.json4 "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 …]
Dchipset-sandbox64.json4 "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/
Dcopy_files.py21 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/modern/
Dsandbox_adapter.cpp32 string path(originPath); in MakeAtomicServiceDir() local
33 if (path.find("/mnt/share") != string::npos) { in MakeAtomicServiceDir()
34path = "/data/service/el2/" + to_string(dacInfo->uid / UID_BASE) + "/share/" + string(varPackageNa… in MakeAtomicServiceDir()
36 if (access(path.c_str(), F_OK) == 0) { in MakeAtomicServiceDir()
37 APPSPAWN_LOGV("path %{public}s already exist, no need to recreate", path.c_str()); in MakeAtomicServiceDir()
40 int ret = mkdir(path.c_str(), S_IRWXU); in MakeAtomicServiceDir()
41 …APPSPAWN_CHECK(ret == 0, return, "mkdir %{public}s failed, errno %{public}d", path.c_str(), errno); in MakeAtomicServiceDir()
43 if (path.find("/database") != string::npos || path.find("/data/service/el2") != string::npos) { in MakeAtomicServiceDir()
44 ret = chmod(path.c_str(), S_IRWXU | S_IRWXG | S_ISGID); in MakeAtomicServiceDir()
45 } else if (path.find("/log") != string::npos) { in MakeAtomicServiceDir()
[all …]
/base/security/selinux_adapter/scripts/selinux_check/
Dcheck_data_regex.py28 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 …]
Dselinux_check_main.py31 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/security/code_signature/interfaces/inner_api/code_sign_utils/include/
Dcode_sign_utils.h53 * @param entryPath map from entryname in hap to real path on disk
54 * @param signatureFile signature file path
62 * @param path hap real path on disk
63 * @param entryPath map from entryname in hap to real path on disk
68 int32_t EnforceCodeSignForApp(const std::string &path, const EntryMap &entryPathMap,
74 * @param path hap real path on disk
75 * @param entryPath map from entryname in hap to real path on disk
80 int32_t EnforceCodeSignForAppWithOwnerId(const std::string &ownerId, const std::string &path,
87 * @param path hap real path on disk
88 * @param entryPath map from entryname in hap to real path on disk
[all …]
/base/inputmethod/imf/services/file/src/
Dfile_operator.cpp27 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()
67 IMSA_HILOGE("FilePath is not an absolute path"); in IsValidPath()
73 bool FileOperator::CheckImeCfgFilePath(const std::string &path) in CheckImeCfgFilePath() argument
[all …]
/base/global/resource_management/frameworks/resmgr/include/
Dhap_resource_manager.h41 * @param path hap file path
50 …const std::shared_ptr<HapResource> Load(const char* path, std::shared_ptr<ResConfigImpl> &defaultC…
55 * @param path the resources.index file path
56 * @param overlayPath the resource overlay path
59 * @return the map of overlay resource path and resource info if success, else null
62 const std::string &path, const std::vector<std::string> &overlayPath,
68 * @param path the resources.index file path
72 …std::shared_ptr<HapResource> PutAndGetResource(const std::string &path, std::shared_ptr<HapResourc…
77 * @param path the resources.index file path
78 * @param patchPath the patch path
[all …]
/base/request/request/common/utils/src/
Dfile_control.rs14 use std::path::Path;
20 pub fn path_exists<P: AsRef<Path>>(path: P) -> bool { in path_exists()
21 Path::new(path.as_ref()).exists() in path_exists()
24 pub fn belong_app_base(path: &str) -> bool { in belong_app_base()
25 path.starts_with(AREA1) || path.starts_with(AREA2) || path.starts_with(AREA5) in belong_app_base()
28 pub fn check_standardized_path(path: &str) -> bool { in check_standardized_path()
29 if path.is_empty() || !path.starts_with('/') || path.ends_with('/') || path.contains("//") { in check_standardized_path()
37 for segment in path.split('/').filter(|s| !s.is_empty()) { in check_standardized_path()
/base/account/os_account/frameworks/common/file_operator/src/
Daccount_file_operator.cpp54 static bool FileExists(const std::string &path) in FileExists() argument
59 if (stat(path.c_str(), &buf) == 0) { in FileExists()
63 … ACCOUNT_LOGE("Stat %{public}s failed, errno=%{public}d. Retrying...", path.c_str(), errno); in FileExists()
70 std::string errMsg = "Stat " + path + " with retry failed."; in FileExists()
80 static void TryEraseTransaction(const std::string &path) in TryEraseTransaction() argument
83 auto iter = g_rwLockMap.find(path); in TryEraseTransaction()
168 static ErrCode WriteFile(const std::string &path, const std::string &content) in WriteFile() argument
170 FILE *fp = fopen(path.c_str(), "wb"); in WriteFile()
172 ACCOUNT_LOGE("Failed to open %{public}s, errno = %{public}d.", path.c_str(), errno); in WriteFile()
180 ACCOUNT_LOGE("Failed to fwrite %{public}s, errno = %{public}d.", path.c_str(), errno); in WriteFile()
[all …]
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_cgroup_test.cpp65 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/startup/init/services/init/
Dinit_cgroup.c31 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/account/os_account/frameworks/common/file_operator/include/
Daccount_file_operator.h39 * @param path file path, should be absolute path.
42 …FileTransaction(std::string path, std::shared_ptr<Utils::RWLock> &rwlock) : path_(path), rwlock_(r… in FileTransaction() argument
51 static bool IsTempFileExist(const std::string &path);
60 static std::string GetTempFilePath(const std::string &path);
78 ErrCode CreateDir(const std::string &path, mode_t mode = S_IRWXU);
79 ErrCode DeleteDirOrFile(const std::string &path);
80 ErrCode DeleteDir(const std::string &path);
81 ErrCode DeleteFile(const std::string &path);
82 ErrCode InputFileByPathAndContent(const std::string &path, const std::string &content);
83 ErrCode GetFileContentByPath(const std::string &path, std::string &content);
[all …]

12345678910>>...92