Home
last modified time | relevance | path

Searched refs:dir (Results 1 – 25 of 397) 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.cpp40 static std::string find_proc_mount(const char* dir) { in find_proc_mount() argument
48 if (strcmp(dir, e->mnt_dir) == 0) { in find_proc_mount()
56 static std::string find_fstab_mount(const char* dir) { in find_fstab_mount() argument
59 struct fstab_rec* rec = fs_mgr_get_entry_for_mount_point(fstab.get(), dir); in find_fstab_mount()
65 static std::string find_mount(const char* dir) { in find_mount() argument
66 if (strcmp(dir, "/") == 0) { in find_mount()
67 return find_fstab_mount(dir); in find_mount()
69 return find_proc_mount(dir); in find_mount()
85 static bool remount_partition(int fd, const char* dir) { in remount_partition() argument
86 if (!directory_exists(dir)) { in remount_partition()
[all …]
/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/extras/ext4_utils/
Dext4_crypt_init_extensions.cpp68 int e4crypt_set_directory_policy(const char* dir) in e4crypt_set_directory_policy() argument
74 if (!dir || strncmp(dir, "/data/", 6) || strchr(dir + 6, '/')) { in e4crypt_set_directory_policy()
90 if ((prefix + d) == dir) { in e4crypt_set_directory_policy()
91 LOG(INFO) << "Not setting policy on " << dir; in e4crypt_set_directory_policy()
99 LOG(ERROR) << "Unable to read system policy to set on " << dir; in e4crypt_set_directory_policy()
116 LOG(INFO) << "Setting policy on " << dir; in e4crypt_set_directory_policy()
117 int result = e4crypt_policy_ensure(dir, policy.c_str(), policy.length(), in e4crypt_set_directory_policy()
124 policy[0], policy[1], policy[2], policy[3], dir); in e4crypt_set_directory_policy()
/system/vold/
DKeyStorage.cpp163 static KeymasterOperation begin(Keymaster& keymaster, const std::string& dir, in begin() argument
168 auto kmKeyPath = dir + "/" + kFn_keymaster_key_blob; in begin()
179 LOG(DEBUG) << "Upgrading key: " << dir; in begin()
182 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in begin()
189 LOG(ERROR) << "Key deletion failed during upgrade, continuing anyway: " << dir; in begin()
192 LOG(INFO) << "Key upgraded: " << dir; in begin()
196 static bool encryptWithKeymasterKey(Keymaster& keymaster, const std::string& dir, in encryptWithKeymasterKey() argument
201 auto opHandle = begin(keymaster, dir, KeyPurpose::ENCRYPT, keyParams, opParams, &outParams); in encryptWithKeymasterKey()
221 static bool decryptWithKeymasterKey(Keymaster& keymaster, const std::string& dir, in decryptWithKeymasterKey() argument
228 auto opHandle = begin(keymaster, dir, KeyPurpose::DECRYPT, keyParams, opParams, nullptr); in decryptWithKeymasterKey()
[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.h46 bool storeKey(const std::string& dir, const KeyAuthentication& auth, const std::string& key);
49 bool retrieveKey(const std::string& dir, const KeyAuthentication& auth, std::string* key);
52 bool destroyKey(const std::string& dir);
/system/sepolicy/public/
Dvold.te6 allow vold cache_file:dir r_dir_perms;
35 allow vold block_device:dir create_dir_perms;
36 allow vold device:dir write;
38 allow vold rootfs:dir mounton;
39 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
41 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
45 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
49 allow vold media_rw_data_file:dir create_dir_perms;
53 allow vold { mnt_media_rw_stub_file storage_stub_file }:dir { mounton create rmdir getattr setattr …
56 allow vold mnt_user_file:dir create_dir_perms;
[all …]
Dsdcardd.te4 allow sdcardd cgroup:dir create_dir_perms;
6 allow sdcardd rootfs:dir mounton; # TODO: deprecated in M
8 allow sdcardd tmpfs:dir r_dir_perms;
9 allow sdcardd mnt_media_rw_file:dir r_dir_perms;
10 allow sdcardd storage_file:dir search;
11 allow sdcardd storage_stub_file:dir { search mounton };
15 allow sdcardd sdcard_type:dir create_dir_perms;
18 allow sdcardd media_rw_data_file:dir create_dir_perms;
32 allow sdcardd mnt_expand_file:dir search;
Dinstalld.te8 allow installd dalvikcache_data_file:dir relabelto;
12 allow installd apk_data_file:dir { create_dir_perms relabelfrom };
18 allow installd apk_tmp_file:dir { relabelfrom create_dir_perms };
19 allow installd oemfs:dir r_dir_perms;
21 allow installd cgroup:dir create_dir_perms;
23 allow installd mnt_expand_file:dir { search getattr };
40 allow installd asec_image_file:dir search;
47 allow installd system_data_file:dir create_dir_perms;
51 allow installd media_rw_data_file:dir create_dir_perms;
54 allow installd system_data_file:dir relabelfrom;
[all …]
Drild.te12 allow rild cgroup:dir create_dir_perms;
16 allow rild mtd_device:dir search;
17 allow rild efs_file:dir create_dir_perms;
21 allow rild bluetooth_efs_file:dir r_dir_perms;
22 allow rild radio_data_file:dir rw_dir_perms;
24 allow rild sdcard_type:dir r_dir_perms;
25 allow rild system_data_file:dir r_dir_perms;
Drecovery.te26 allow recovery rootfs:dir mounton;
34 allow recovery system_file:dir { create_dir_perms relabelfrom relabelto };
39 allow recovery unlabeled:dir { create_dir_perms relabelfrom relabelto };
49 allow recovery exec_type:dir { create_dir_perms relabelfrom relabelto };
68 allow recovery sysfs_leds:dir r_dir_perms;
75 allow recovery functionfs:dir search;
79 allow recovery device:dir r_dir_perms;
80 allow recovery block_device:dir r_dir_perms;
85 allow recovery graphics_device:dir r_dir_perms;
86 allow recovery input_device:dir r_dir_perms;
[all …]
Dinit.te17 allow init properties_device:dir relabelto;
24 allow init { device socket_device }:dir relabelto;
30 allow init block_device:{ dir blk_file lnk_file } relabelto;
62 allow init rootfs:dir create_dir_perms;
63 …ile cgroup storage_file system_data_file system_file vendor_file postinstall_mnt_dir }:dir mounton;
66 allow init device:dir mounton;
72 allow init sysfs:dir mounton;
75 allow init tmpfs:dir create_dir_perms;
76 allow init tmpfs:dir mounton;
77 allow init cgroup:dir create_dir_perms;
[all …]
Dfingerprintd.te7 allow fingerprintd system_file:dir r_dir_perms;
12 # allow HAL module to read dir contents
15 # allow HAL module to read/write/unlink contents of this dir
16 allow fingerprintd fingerprintd_data_file:dir rw_dir_perms;
Dshell.te12 allow shell pstorefs:dir search;
16 allow shell rootfs:dir r_dir_perms;
19 allow shell anr_data_file:dir r_dir_perms;
23 allow shell shell_data_file:dir create_dir_perms;
29 allow shell profman_dump_data_file:dir { search getattr write remove_name };
34 allow shell nativetest_data_file:dir r_dir_perms;
44 allow shell input_device:dir r_dir_perms;
70 allow shell boottrace_data_file:dir rw_dir_perms;
103 allow shell domain:dir { search open read getattr };
111 allow shell device:dir getattr;
[all …]
Ddumpstate.te34 allow dumpstate anr_data_file:dir rw_dir_perms;
46 allow dumpstate pstorefs:dir r_dir_perms;
87 allow dumpstate { storage_file block_device }:dir { search getattr };
110 allow dumpstate shell_data_file:dir create_dir_perms;
123 allow dumpstate dalvikcache_data_file:dir { search getattr };
128 allow dumpstate bluetooth_data_file:dir search;
129 allow dumpstate bluetooth_logs_data_file:dir r_dir_perms;
144 allow dumpstate net_data_file:dir search;
151 allow dumpstate tombstone_data_file:dir r_dir_perms;
155 allow dumpstate cache_recovery_file:dir r_dir_perms;
[all …]
Dpostinstall_dexopt.te11 allow postinstall_dexopt postinstall_file:dir { getattr search };
27 allow postinstall_dexopt user_profile_data_file:dir { getattr search };
31 allow postinstall_dexopt ota_data_file:dir create_dir_perms;
37 allow postinstall_dexopt dalvikcache_data_file:dir rw_dir_perms;
42 allow postinstall_dexopt dalvikcache_data_file:dir relabelto;
57 allow postinstall_dexopt cpuctl_device:dir search;
Dslideshow.te7 allow slideshow device:dir r_dir_perms;
9 allow slideshow graphics_device:dir r_dir_perms;
11 allow slideshow input_device:dir r_dir_perms;
/system/extras/simpleperf/scripts/
Dutils.py64 dir = os.path.join(get_script_dir(), 'bin')
68 dir = os.path.join(dir, 'windows')
72 dir = os.path.join(dir, 'darwin')
74 dir = os.path.join(dir, 'linux')
75 dir = os.path.join(dir, 'x86_64' if sys.maxsize > 2 ** 32 else 'x86')
76 binary_path = os.path.join(dir, binary_name)
/system/sepolicy/private/
Dplatform_app.te15 allow platform_app shell_data_file:dir search;
20 allow platform_app { apk_tmp_file apk_private_tmp_file }:dir rw_dir_perms;
22 allow platform_app apk_private_data_file:dir search;
24 allow platform_app asec_apk_file:dir create_dir_perms;
28 allow platform_app media_rw_data_file:dir create_dir_perms;
32 allow platform_app cache_file:dir create_dir_perms;
37 allow platform_app mnt_media_rw_file:dir r_dir_perms;
38 allow platform_app vfat:dir create_dir_perms;
59 allow platform_app preloads_data_file:dir r_dir_perms;
61 allow platform_app preloads_media_file:dir r_dir_perms;
Ddomain_deprecated.te4 allow { domain_deprecated -installd } tmpfs:dir r_dir_perms;
15 } tmpfs:dir r_dir_perms;
32 allow domain_deprecated rootfs:dir r_dir_perms;
47 } rootfs:dir { open getattr read ioctl lock }; # search granted in domain
74 allow domain_deprecated system_file:dir r_dir_perms;
87 } system_file:dir { open read ioctl lock }; # search getattr in domain
110 allow domain_deprecated apk_data_file:dir { getattr search };
120 } apk_data_file:dir { getattr search };
138 allow domain_deprecated cache_file:dir r_dir_perms;
146 } cache_file:dir { open read search ioctl lock };
[all …]
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;
79 allow adbd adb_keys_file:dir search;
86 allow adbd adb_data_file:dir rw_dir_perms;
91 allow adbd app_data_file:dir search;
100 allow adbd selinuxfs:dir r_dir_perms;
[all …]
Dsystem_server.te19 allow system_server dalvikcache_data_file:dir r_dir_perms;
28 allow system_server resourcecache_data_file:dir r_dir_perms;
35 allow system_server reboot_data_file:dir { write search open remove_name };
270 allow system_server sysfs_thermal:dir search;
280 allow system_server device:dir r_dir_perms;
285 allow system_server input_device:dir r_dir_perms;
290 allow system_server video_device:dir r_dir_perms;
294 allow system_server audio_device:dir r_dir_perms;
303 allow system_server system_data_file:dir create_dir_perms;
305 allow system_server keychain_data_file:dir create_dir_perms;
[all …]
/system/sepolicy/
DAndroid.mk1 LOCAL_PATH:= $(call my-dir)
226 @mkdir -p $(dir $@)
238 @mkdir -p $(dir $@)
257 @mkdir -p $(dir $@)
271 @mkdir -p $(dir $@)
287 @mkdir -p $(dir $@)
313 @mkdir -p $(dir $@)
329 @mkdir -p $(dir $@)
350 mkdir -p $(dir $@)
369 @mkdir -p $(dir $@)
[all …]
/system/core/libcutils/
Dfs_config.c257 static int fs_config_open(int dir, int which, const char* target_out_path) { in fs_config_open() argument
268 if (asprintf(&name, "%.*s%s", (int)len, target_out_path, conf[which][dir]) != -1) { in fs_config_open()
274 fd = TEMP_FAILURE_RETRY(open(conf[which][dir], O_RDONLY | O_BINARY)); in fs_config_open()
279 static bool fs_config_cmp(bool dir, const char* prefix, size_t len, const char* path, size_t plen) { in fs_config_cmp() argument
280 if (dir) { in fs_config_cmp()
296 void fs_config(const char* path, int dir, const char* target_out_path, unsigned* uid, unsigned* gid, in fs_config() argument
310 int fd = fs_config_open(dir, which, target_out_path); in fs_config()
318 ALOGE("%s len is corrupted", conf[which][dir]); in fs_config()
323 ALOGE("%s out of memory", conf[which][dir]); in fs_config()
328 ALOGE("%s prefix is truncated", conf[which][dir]); in fs_config()
[all …]

12345678910>>...16