Home
last modified time | relevance | path

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

12345678910>>...37

/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java54 File dir = createTempDir(); in testDeleteRecursive() local
55 File file1 = createRegularFile(dir, "file1"); in testDeleteRecursive()
56 File file2 = createRegularFile(dir, "file2"); in testDeleteRecursive()
57 File symLink1 = createSymlink(file1, dir, "symLink1"); in testDeleteRecursive()
58 File subDir = createDir(dir, "subDir"); in testDeleteRecursive()
61 File symLink2 = createSymlink(file1, dir, "symLink2"); in testDeleteRecursive()
69 File[] filesToDelete = { dir, file1, file2, symLink1, subDir, file3, file4, symLink2, in testDeleteRecursive()
75 FileUtils.deleteRecursive(dir); in testDeleteRecursive()
81 File dir = createTempDir(); in testIsSymlink() local
82 File subDir = createDir(dir, "subDir"); in testIsSymlink()
[all …]
/system/extras/libfscrypt/
Dfscrypt_init_extensions.cpp42 static int set_system_de_policy_on(char const* dir);
59 int fscrypt_set_directory_policy(const char* dir) in fscrypt_set_directory_policy() argument
61 if (!dir || strncmp(dir, "/data/", 6)) { in fscrypt_set_directory_policy()
66 if (strcmp(dir, "/data/media/obb") == 0) { in fscrypt_set_directory_policy()
68 set_system_de_policy_on(dir); in fscrypt_set_directory_policy()
76 if (strchr(dir + 6, '/')) { in fscrypt_set_directory_policy()
95 if ((prefix + d) == dir) { in fscrypt_set_directory_policy()
96 LOG(INFO) << "Not setting policy on " << dir; in fscrypt_set_directory_policy()
100 return set_system_de_policy_on(dir); in fscrypt_set_directory_policy()
103 static int set_system_de_policy_on(char const* dir) { in set_system_de_policy_on() argument
[all …]
/system/sepolicy/private/
Dbug_map6 init nativetest_data_file dir 77873135
7 init pstorefs dir 77873135
8 init shell_data_file dir 77873135
13 isolated_app privapp_data_file dir 119596573
14 isolated_app app_data_file dir 120394782
18 mediaprovider mnt_media_rw_file dir 77925342
19 mediaprovider shell_data_file dir 77925342
24 platform_app nfc_data_file dir 74331887
27 system_server storage_stub_file dir 112609936
/system/sepolicy/prebuilts/api/29.0/private/
Dbug_map6 init nativetest_data_file dir 77873135
7 init pstorefs dir 77873135
8 init shell_data_file dir 77873135
13 isolated_app privapp_data_file dir 119596573
14 isolated_app app_data_file dir 120394782
18 mediaprovider mnt_media_rw_file dir 77925342
19 mediaprovider shell_data_file dir 77925342
24 platform_app nfc_data_file dir 74331887
27 system_server storage_stub_file dir 112609936
/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/prebuilts/api/28.0/private/
Dbug_map11 init nativetest_data_file dir 77873135
12 init pstorefs dir 77873135
13 init shell_data_file dir 77873135
21 mediaprovider mnt_media_rw_file dir 77925342
22 mediaprovider shell_data_file dir 77925342
28 platform_app nfc_data_file dir 74331887
32 priv_app system_data_file dir 72811052
33 profman apk_data_file dir 77922323
42 untrusted_app_25 system_data_file dir 72550646
43 untrusted_app_27 system_data_file dir 72550646
/system/sepolicy/prebuilts/api/26.0/public/
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;
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 …]
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 …]
/system/sepolicy/prebuilts/api/28.0/public/
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;
22 allow installd mnt_expand_file:dir { search getattr };
39 allow installd asec_image_file:dir search;
46 allow installd system_data_file:dir create_dir_perms;
52 allow installd media_rw_data_file:dir create_dir_perms;
55 allow installd system_data_file:dir relabelfrom;
[all …]
Dvold.te6 allow vold cache_file:dir r_dir_perms;
46 allow vold block_device:dir create_dir_perms;
47 allow vold device:dir write;
49 allow vold rootfs:dir mounton;
50 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
52 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
56 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
60 allow vold media_rw_data_file:dir create_dir_perms;
64 allow vold { mnt_media_rw_stub_file storage_stub_file }:dir { mounton create rmdir getattr setattr …
67 allow vold mnt_user_file:dir create_dir_perms;
[all …]
/system/sepolicy/prebuilts/api/27.0/public/
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;
Dvold.te6 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;
56 allow vold { mnt_media_rw_stub_file storage_stub_file }:dir { mounton create rmdir getattr setattr …
59 allow vold mnt_user_file:dir create_dir_perms;
[all …]
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 …]
/system/sepolicy/public/
Dvold.te6 allow vold cache_file:dir r_dir_perms;
44 allowxperm vold { fs_type file_type }:dir ioctl FITRIM;
47 allowxperm vold data_file_type:dir ioctl {
62 allow vold block_device:dir create_dir_perms;
63 allow vold device:dir write;
65 allow vold rootfs:dir mounton;
66 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
68 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
72 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
76 allow vold media_rw_data_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;
33 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 };
25 allow installd apk_tmp_file:dir { relabelfrom create_dir_perms };
26 allow installd oemfs:dir r_dir_perms;
28 allow installd cgroup:dir create_dir_perms;
29 allow installd mnt_expand_file:dir { search getattr };
48 allow installd asec_image_file:dir search;
55 allow installd system_data_file:dir create_dir_perms;
61 allow installd media_rw_data_file:dir create_dir_perms;
64 allow installd system_data_file:dir relabelfrom;
[all …]
Dfastbootd.te14 allow fastbootd functionfs:dir search;
24 allow fastbootd device:dir r_dir_perms;
32 # For dev/block/by-name dir
33 allow fastbootd block_device:dir r_dir_perms;
58 allow fastbootd {rootfs tmpfs}:dir mounton;
59 allow fastbootd metadata_file:dir search;
60 allow fastbootd gsi_metadata_file:dir r_dir_perms;
74 allow fastbootd rootfs:dir r_dir_perms;
78 allow fastbootd sysfs_dt_firmware_android:dir r_dir_perms;
81 allow fastbootd block_device:dir getattr;
[all …]
/system/sepolicy/prebuilts/api/29.0/public/
Dvold.te6 allow vold cache_file:dir r_dir_perms;
44 allowxperm vold { fs_type file_type }:dir ioctl FITRIM;
47 allowxperm vold data_file_type:dir ioctl {
62 allow vold block_device:dir create_dir_perms;
63 allow vold device:dir write;
65 allow vold rootfs:dir mounton;
66 allow vold sdcard_type:dir mounton; # TODO: deprecated in M
68 allow vold sdcard_type:dir create_dir_perms; # TODO: deprecated in M
72 allow vold { mnt_media_rw_file storage_file sdcard_type }:dir create_dir_perms;
76 allow vold media_rw_data_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;
33 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 };
25 allow installd apk_tmp_file:dir { relabelfrom create_dir_perms };
26 allow installd oemfs:dir r_dir_perms;
28 allow installd cgroup:dir create_dir_perms;
29 allow installd mnt_expand_file:dir { search getattr };
48 allow installd asec_image_file:dir search;
55 allow installd system_data_file:dir create_dir_perms;
61 allow installd media_rw_data_file:dir create_dir_perms;
64 allow installd system_data_file:dir relabelfrom;
[all …]
Dfastbootd.te14 allow fastbootd functionfs:dir search;
24 allow fastbootd device:dir r_dir_perms;
32 # For dev/block/by-name dir
33 allow fastbootd block_device:dir r_dir_perms;
58 allow fastbootd {rootfs tmpfs}:dir mounton;
59 allow fastbootd metadata_file:dir search;
60 allow fastbootd gsi_metadata_file:dir r_dir_perms;
74 allow fastbootd rootfs:dir r_dir_perms;
78 allow fastbootd sysfs_dt_firmware_android:dir r_dir_perms;
81 allow fastbootd block_device:dir getattr;
[all …]
/system/vold/
DKeyStorage.cpp199 static KeymasterOperation begin(Keymaster& keymaster, const std::string& dir, in begin() argument
204 auto kmKeyPath = dir + "/" + kFn_keymaster_key_blob; in begin()
215 LOG(DEBUG) << "Upgrading key: " << dir; in begin()
218 auto newKeyPath = dir + "/" + kFn_keymaster_key_blob_upgraded; in begin()
225 if (!android::vold::FsyncDirectory(dir)) { in begin()
226 LOG(ERROR) << "Key dir sync failed: " << dir; in begin()
230 LOG(ERROR) << "Key deletion failed during upgrade, continuing anyway: " << dir; in begin()
234 LOG(INFO) << "Key upgraded: " << dir; in begin()
238 static bool encryptWithKeymasterKey(Keymaster& keymaster, const std::string& dir, in encryptWithKeymasterKey() argument
244 auto opHandle = begin(keymaster, dir, km::KeyPurpose::ENCRYPT, keyParams, opParams, authToken, in encryptWithKeymasterKey()
[all …]
/system/apex/apexd/
Dapex_key.cpp41 const std::string& dir) { in collectEmbedddedApexKeysFromDir() argument
42 LOG(INFO) << "Scanning " << dir << " for embedded keys"; in collectEmbedddedApexKeysFromDir()
45 if (access(dir.c_str(), F_OK) != 0 && errno == ENOENT) { in collectEmbedddedApexKeysFromDir()
49 const bool scanBuiltinApexes = isPathForBuiltinApexes(dir); in collectEmbedddedApexKeysFromDir()
52 StringLog() << "Can't scan embedded APEX keys from " << dir); in collectEmbedddedApexKeysFromDir()
55 FindApexFilesByName(dir, scanBuiltinApexes); in collectEmbedddedApexKeysFromDir()
93 for (const auto& dir : kApexPackageBuiltinDirs) { in collectApexKeys() local
95 collectEmbedddedApexKeysFromDir(dir); in collectApexKeys()
97 return Status::Fail(StringLog() << "Failed to collect keys from " << dir in collectApexKeys()

12345678910>>...37