Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 380) sorted by relevance

12345678910>>...16

/system/core/toolbox/upstream-netbsd/bin/dd/
Ddd.h63 #define ddop_open(dir, a1, a2, ...) dir.ops->op_open(a1, a2, __VA_ARGS__) argument
64 #define ddop_close(dir, a1) dir.ops->op_close(a1) argument
65 #define ddop_fcntl(dir, a1, a2, ...) dir.ops->op_fcntl(a1, a2, __VA_ARGS__) argument
66 #define ddop_ioctl(dir, a1, a2, ...) dir.ops->op_ioctl(a1, a2, __VA_ARGS__) argument
67 #define ddop_fsync(dir, a1) dir.ops->op_fsync(a1) argument
68 #define ddop_ftruncate(dir, a1, a2) dir.ops->op_ftruncate(a1, a2) argument
69 #define ddop_lseek(dir, a1, a2, a3) dir.ops->op_lseek(a1, a2, a3) argument
70 #define ddop_read(dir, a1, a2, a3) dir.ops->op_read(a1, a2, a3) argument
71 #define ddop_write(dir, a1, a2, a3) dir.ops->op_write(a1, a2, a3) argument
/system/core/adb/
Dremount_service.cpp39 static std::string find_proc_mount(const char* dir) { in find_proc_mount() argument
47 if (strcmp(dir, e->mnt_dir) == 0) { in find_proc_mount()
55 static std::string find_fstab_mount(const char* dir) { in find_fstab_mount() argument
61 struct fstab_rec* rec = fs_mgr_get_entry_for_mount_point(fstab, dir); in find_fstab_mount()
69 static std::string find_mount(const char* dir) { in find_mount() argument
70 if (strcmp(dir, "/") == 0) { in find_mount()
71 return find_fstab_mount(dir); in find_mount()
73 return find_proc_mount(dir); in find_mount()
89 static bool remount_partition(int fd, const char* dir) { in remount_partition() argument
90 if (!directory_exists(dir)) { in remount_partition()
[all …]
/system/extras/ext4_utils/
Dext4_crypt_init_extensions.cpp60 int e4crypt_create_device_key(const char* dir, in e4crypt_create_device_key() argument
66 std::string unencrypted_dir = std::string(dir) + e4crypt_unencrypted_folder; in e4crypt_create_device_key()
108 int e4crypt_set_directory_policy(const char* dir) in e4crypt_set_directory_policy() argument
116 if (!dir || strncmp(dir, "/data/", 6) || strchr(dir + 6, '/')) { in e4crypt_set_directory_policy()
132 if ((prefix + d) == dir) { in e4crypt_set_directory_policy()
133 KLOG_INFO(TAG, "Not setting policy on %s\n", dir); in e4crypt_set_directory_policy()
141 KLOG_ERROR(TAG, "Unable to read system policy to set on %s\n", dir); in e4crypt_set_directory_policy()
144 KLOG_INFO(TAG, "Setting policy on %s\n", dir); in e4crypt_set_directory_policy()
145 int result = e4crypt_policy_ensure(dir, policy.c_str(), policy.size()); in e4crypt_set_directory_policy()
148 policy[0], policy[1], policy[2], policy[3], dir); in e4crypt_set_directory_policy()
/system/extras/tests/storage/
Dopentest.c31 char *dir; in main() local
41 dir = argv[1]; in main()
49 if (stat(dir, &statbuf)) { in main()
50 fprintf(stderr, "Cannot stat %s\n", dir); in main()
55 fprintf(stderr, "%s is not a directory!\n", dir); in main()
59 if (access(dir, R_OK | W_OK)) { in main()
60 fprintf(stderr, "No access to %s\n", dir); in main()
70 if (chdir(dir)) { in main()
71 fprintf(stderr, "Cannot chdir to %s\n", dir); in main()
/system/sepolicy/
Dvold.te12 allow vold cache_file:dir r_dir_perms;
38 allow vold block_device:dir create_dir_perms;
39 allow vold device:dir write;
41 allow vold rootfs:dir mounton;
42 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
44 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
48 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
52 allow vold media_rw_data_file:dir create_dir_perms;
57 type_transition vold storage_file:dir storage_stub_file;
58 type_transition vold mnt_media_rw_file:dir mnt_media_rw_stub_file;
[all …]
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
6 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
7 allow sdcardd tmpfs:dir r_dir_perms;
8 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
9 allow sdcardd storage_file:dir search;
10 allow sdcardd storage_stub_file:dir { search mounton };
14 allow sdcardd sdcard_type:dir create_dir_perms;
17 type_transition sdcardd system_data_file:{ dir file } media_rw_data_file;
18 allow sdcardd media_rw_data_file:dir create_dir_perms;
32 allow sdcardd mnt_expand_file:dir search;
Dinstalld.te10 allow installd dalvikcache_data_file:dir relabelto;
14 allow installd apk_data_file:dir { create_dir_perms relabelfrom };
20 allow installd apk_tmp_file:dir { relabelfrom create_dir_perms };
21 allow installd oemfs:dir r_dir_perms;
23 allow installd cgroup:dir create_dir_perms;
24 allow installd mnt_expand_file:dir { search getattr };
31 allow installd asec_image_file:dir search;
38 allow installd system_data_file:dir create_dir_perms;
42 allow installd media_rw_data_file:dir create_dir_perms;
45 allow installd system_data_file:dir relabelfrom;
[all …]
DAndroid.mk1 LOCAL_PATH:= $(call my-dir)
74 @mkdir -p $(dir $@)
94 @mkdir -p $(dir $@)
102 @mkdir -p $(dir $@)
104 …$(hide) $(HOST_OUT_EXECUTABLES)/checkpolicy -M -c $(POLICYVERS) -o $(dir $<)/$(notdir $@).dontaudi…
132 @mkdir -p $(dir $@)
140 @mkdir -p $(dir $@)
170 mkdir -p $(dir $@)
190 @mkdir -p $(dir $@)
227 @mkdir -p $(dir $@)
[all …]
Dplatform_app.te12 allow platform_app shell_data_file:dir search;
17 allow platform_app { apk_tmp_file apk_private_tmp_file }:dir rw_dir_perms;
19 allow platform_app apk_private_data_file:dir search;
21 allow platform_app asec_apk_file:dir create_dir_perms;
25 allow platform_app media_rw_data_file:dir create_dir_perms;
29 allow platform_app { cache_file cache_recovery_file }:dir create_dir_perms;
33 auditallow platform_app cache_recovery_file:dir create_dir_perms;
38 allow platform_app mnt_media_rw_file:dir r_dir_perms;
39 allow platform_app vfat:dir create_dir_perms;
57 allow platform_app preloads_data_file:dir r_dir_perms;
Ddomain_deprecated.te9 allow domain_deprecated tmpfs:dir r_dir_perms;
21 allow domain_deprecated rootfs:dir r_dir_perms;
29 allow domain_deprecated system_file:dir r_dir_perms;
34 allow domain_deprecated system_data_file:dir { search getattr };
39 allow domain_deprecated apk_data_file:dir { getattr search };
44 allow domain_deprecated dalvikcache_data_file:dir { search getattr };
48 allow domain_deprecated cache_file:dir r_dir_perms;
64 allow domain_deprecated selinuxfs:dir r_dir_perms;
68 allow domain_deprecated security_file:dir { search getattr };
74 allow domain_deprecated { asec_public_file asec_apk_file }:dir r_dir_perms;
Dadbd.te27 allow adbd functionfs:dir search;
34 allow adbd shell_data_file:dir create_dir_perms;
38 allow adbd profman_dump_data_file:dir r_dir_perms;
42 allow adbd tmpfs:dir search;
45 allow adbd sdcard_type:dir create_dir_perms;
49 allow adbd anr_data_file:dir r_dir_perms;
73 allow adbd adb_keys_file:dir search;
80 allow adbd adb_data_file:dir rw_dir_perms;
85 allow adbd { app_data_file autoplay_data_file }:dir search;
94 allow adbd selinuxfs:dir r_dir_perms;
[all …]
Dsystem_server.te12 allow system_server dalvikcache_data_file:dir r_dir_perms;
16 allow system_server user_profile_data_file:dir search;
18 allow system_server user_profile_foreign_dex_data_file:dir { add_name open read write search remove…
23 allow system_server resourcecache_data_file:dir r_dir_perms;
190 allow system_server sysfs_thermal:dir search;
197 allow system_server device:dir r_dir_perms;
202 allow system_server input_device:dir r_dir_perms;
207 allow system_server video_device:dir r_dir_perms;
211 allow system_server audio_device:dir r_dir_perms;
220 allow system_server system_data_file:dir create_dir_perms;
[all …]
Dshell.te16 allow shell pstorefs:dir search;
20 allow shell misc_logd_file:dir r_dir_perms;
25 allow shell rootfs:dir r_dir_perms;
28 allow shell anr_data_file:dir r_dir_perms;
32 allow shell shell_data_file:dir create_dir_perms;
38 allow shell profman_dump_data_file:dir { search getattr write remove_name };
43 allow shell nativetest_data_file:dir r_dir_perms;
53 allow shell input_device:dir r_dir_perms;
75 allow shell debugfs_tracing:dir r_dir_perms;
82 allow shell boottrace_data_file:dir rw_dir_perms;
[all …]
Drild.te11 allow rild cgroup:dir create_dir_perms;
14 allow rild mtd_device:dir search;
15 allow rild efs_file:dir create_dir_perms;
19 allow rild bluetooth_efs_file:dir r_dir_perms;
20 allow rild radio_data_file:dir rw_dir_perms;
22 allow rild sdcard_type:dir r_dir_perms;
23 allow rild system_data_file:dir r_dir_perms;
Dinit.te15 allow init { device socket_device }:dir relabelto;
17 allow init properties_device:dir relabelto;
46 allow init rootfs:dir create_dir_perms;
47 allow init { rootfs cache_file cgroup storage_file system_data_file system_file }:dir mounton;
50 allow init device:dir mounton;
56 allow init sysfs:dir mounton;
59 allow init tmpfs:dir create_dir_perms;
60 allow init tmpfs:dir mounton;
61 allow init cgroup:dir create_dir_perms;
62 allow init cpuctl_device:dir { create mounton };
[all …]
Drecovery.te21 allow recovery rootfs:dir mounton;
29 allow recovery system_file:dir { create_dir_perms relabelfrom relabelto };
34 allow recovery unlabeled:dir { create_dir_perms relabelfrom relabelto };
42 allow recovery exec_type:dir { create_dir_perms relabelfrom relabelto };
57 allow recovery functionfs:dir search;
61 allow recovery device:dir r_dir_perms;
62 allow recovery block_device:dir r_dir_perms;
69 allow recovery graphics_device:dir r_dir_perms;
70 allow recovery input_device:dir r_dir_perms;
76 allow recovery tmpfs:dir create_dir_perms;
[all …]
Dzygote.te16 allow zygote { appdomain autoplay_app }:dir { getattr search };
22 allow zygote system_data_file:dir r_dir_perms;
25 allow zygote dalvikcache_data_file:dir create_dir_perms;
30 allow zygote resourcecache_data_file:dir rw_dir_perms;
40 allow zygote cgroup:dir create_dir_perms;
54 allow zygote rootfs:dir mounton;
60 allow zygote mnt_user_file:dir create_dir_perms;
63 allow zygote storage_file:dir { search mounton };
75 allow zygote system_file:dir r_dir_perms;
80 allow zygote method_trace_data_file:dir w_dir_perms;
[all …]
Dwpa.te11 allow wpa cgroup:dir create_dir_perms;
16 allow wpa wifi_data_file:dir create_dir_perms;
23 type_transition wpa wifi_data_file:dir wpa_socket "sockets";
24 allow wpa wpa_socket:dir create_dir_perms;
47 neverallow wpa sdcard_type:dir ~getattr;
Daudioserver.te16 allow audioserver system_file:dir r_dir_perms;
20 allow audioserver media_data_file:dir create_dir_perms;
21 allow audioserver audioserver_data_file:dir create_dir_perms;
28 allow audioserver audio_device:dir r_dir_perms;
39 allow audioserver audio_data_file:dir ra_dir_perms;
/system/vold/
DKeyStorage.cpp246 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const std::string& key) { in storeKey() argument
247 if (TEMP_FAILURE_RETRY(mkdir(dir.c_str(), 0700)) == -1) { in storeKey()
248 PLOG(ERROR) << "key mkdir " << dir; in storeKey()
251 if (!writeStringToFile(kCurrentVersion, dir + "/" + kFn_version)) return false; in storeKey()
258 if (!writeStringToFile(secdiscardable, dir + "/" + kFn_secdiscardable)) return false; in storeKey()
260 if (!writeStringToFile(stretching, dir + "/" + kFn_stretching)) return false; in storeKey()
267 if (!writeStringToFile(salt, dir + "/" + kFn_salt)) return false; in storeKey()
275 if (!writeStringToFile(kmKey, dir + "/" + kFn_keymaster_key_blob)) return false; in storeKey()
278 if (!writeStringToFile(encryptedKey, dir + "/" + kFn_encrypted_key)) return false; in storeKey()
282 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, std::string* key) { in retrieveKey() argument
[all …]
DProcess.cpp89 DIR *dir = opendir(path); in checkFileDescriptorSymLinks() local
90 if (!dir) in checkFileDescriptorSymLinks()
99 while ((de = readdir(dir))) { in checkFileDescriptorSymLinks()
115 closedir(dir); in checkFileDescriptorSymLinks()
120 closedir(dir); in checkFileDescriptorSymLinks()
182 DIR* dir; in killProcessesWithOpenFiles() local
185 if (!(dir = opendir("/proc"))) { in killProcessesWithOpenFiles()
190 while ((de = readdir(dir))) { in killProcessesWithOpenFiles()
220 closedir(dir); in killProcessesWithOpenFiles()
DKeyStorage.h42 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const std::string& key);
45 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, std::string* key);
48 bool destroyKey(const std::string& dir);
/system/core/libcutils/
Dfs_config.c163 static int fs_config_open(int dir, const char *target_out_path) in fs_config_open() argument
177 … if (asprintf(&name, "%s%s", target_out_path, (dir ? conf_dir : conf_file) + skip_len) != -1) { in fs_config_open()
183 fd = TEMP_FAILURE_RETRY(open(dir ? conf_dir : conf_file, O_RDONLY | O_BINARY)); in fs_config_open()
188 static bool fs_config_cmp(bool dir, const char *prefix, size_t len, in fs_config_cmp() argument
191 if (dir) { in fs_config_cmp()
207 void fs_config(const char *path, int dir, const char *target_out_path, in fs_config() argument
219 fd = fs_config_open(dir, target_out_path); in fs_config()
228 ALOGE("%s len is corrupted", dir ? conf_dir : conf_file); in fs_config()
233 ALOGE("%s out of memory", dir ? conf_dir : conf_file); in fs_config()
238 ALOGE("%s prefix is truncated", dir ? conf_dir : conf_file); in fs_config()
[all …]
/system/update_engine/include/
Dupdate_includes.sh41 local dir="$2"
44 mkdir -p "${MY_DIR}/${dir}"
45 local outdir=$(realpath "${MY_DIR}/${dir}")
52 sed "s,include \"dbus-proxies.h\",include \"${dir}/dbus-proxies.h\"," \
/system/core/libprocessgroup/
Dprocessgroup.cpp207 struct dirent *dir; in removeUidProcessGroups() local
208 while ((readdir_r(uid, &cur, &dir) == 0) && dir) { in removeUidProcessGroups()
211 if (dir->d_type != DT_DIR) { in removeUidProcessGroups()
215 if (strncmp(dir->d_name, PROCESSGROUP_PID_PREFIX, strlen(PROCESSGROUP_PID_PREFIX))) { in removeUidProcessGroups()
219 snprintf(path, sizeof(path), "%s/%s", uid_path, dir->d_name); in removeUidProcessGroups()
236 struct dirent *dir; in removeAllProcessGroups() local
237 while ((readdir_r(root, &cur, &dir) == 0) && dir) { in removeAllProcessGroups()
240 if (dir->d_type != DT_DIR) { in removeAllProcessGroups()
243 if (strncmp(dir->d_name, PROCESSGROUP_UID_PREFIX, strlen(PROCESSGROUP_UID_PREFIX))) { in removeAllProcessGroups()
247 snprintf(path, sizeof(path), "%s/%s", cgroup_root_path, dir->d_name); in removeAllProcessGroups()

12345678910>>...16