Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/system/sepolicy/
Ddex2oat.te5 allow dex2oat dalvikcache_data_file:file write;
7 # the oat file is symlinked to the original file in /system.
11 # Read already open asec_apk_file file descriptors passed by installd.
14 allow dex2oat asec_apk_file:file read;
15 allow dex2oat unlabeled:file read;
16 allow dex2oat oemfs:file read;
17 allow dex2oat apk_tmp_file:file read;
18 allow dex2oat user_profile_data_file:file { getattr read lock };
24 # Allow dex2oat to use file descriptors from otapreopt.
31 allow dex2oat ota_data_file:file r_file_perms;
[all …]
Dprofman.te5 allow profman user_profile_data_file:file { getattr read write lock };
7 # Dumping profile info opens the application APK file for pretty printing.
8 allow profman asec_apk_file:file { read };
9 allow profman apk_data_file:file { read };
10 allow profman oemfs:file { read };
12 allow profman tmpfs:file { read };
13 allow profman profman_dump_data_file:file { write };
Ddumpstate.te28 allow dumpstate system_file:file execute_no_trans;
29 allow dumpstate toolbox_exec:file rx_file_perms;
34 allow dumpstate anr_data_file:file create_file_perms;
38 allow dumpstate system_data_file:file r_file_perms;
46 allow dumpstate pstorefs:file r_file_perms;
87 # TODO: create a new file class, instead of allowing write access to all of /sys
88 allow dumpstate sysfs:file w_file_perms;
91 allow dumpstate sysfs_usb:file w_file_perms;
94 allow dumpstate qtaguid_proc:file r_file_perms;
95 allow dumpstate debugfs:file r_file_perms;
[all …]
Dshell.te17 allow shell pstorefs:file r_file_perms;
21 allow shell misc_logd_file:file r_file_perms;
29 allow shell anr_data_file:file r_file_perms;
33 allow shell shell_data_file:file create_file_perms;
34 allow shell shell_data_file:file rx_file_perms;
39 allow shell profman_dump_data_file:file { getattr unlink };
44 allow shell nativetest_data_file:file rx_file_perms;
56 allow shell system_file:file x_file_perms;
57 allow shell toolbox_exec:file rx_file_perms;
58 allow shell shell_exec:file rx_file_perms;
[all …]
Dinstalld.te11 allow installd dalvikcache_data_file:file { relabelto link };
15 allow installd apk_data_file:file { create_file_perms relabelfrom link };
18 allow installd asec_apk_file:file r_file_perms;
19 allow installd apk_tmp_file:file { r_file_perms unlink };
22 allow installd oemfs:file r_file_perms;
32 allow installd asec_image_file:file getattr;
43 allow installd media_rw_data_file:file { getattr unlink };
50 allow installd misc_user_data_file:file create_file_perms;
52 allow installd keychain_data_file:file {r_file_perms unlink};
54 # Create /data/.layout_version.* file
[all …]
Ddomain_deprecated.te5 allow domain_deprecated tmpfs:file { read getattr };
22 allow domain_deprecated rootfs:file r_file_perms;
26 allow domain_deprecated device:file read;
28 # System file accesses.
30 allow domain_deprecated system_file:file r_file_perms;
35 allow domain_deprecated system_data_file:file { getattr read };
40 allow domain_deprecated apk_data_file:file r_file_perms;
45 allow domain_deprecated dalvikcache_data_file:file r_file_perms;
49 allow domain_deprecated cache_file:file { getattr read };
60 allow domain_deprecated proc_meminfo:file r_file_perms;
[all …]
Dsystem_server.te11 allow system_server dalvikcache_data_file:file execute;
17 allow system_server user_profile_data_file:file getattr;
19 allow system_server user_profile_foreign_dex_data_file:file { getattr rename unlink };
22 allow system_server resourcecache_data_file:file r_file_perms;
31 allow system_server zygote_tmpfs:file read;
37 allow system_server zygote_exec:file r_file_perms;
100 allow system_server qtaguid_proc:file rw_file_perms;
104 allow system_server proc_uid_cputime_showstat:file r_file_perms;
107 allow system_server proc_uid_cputime_removeuid:file { w_file_perms getattr };
110 allow system_server proc_sysrq:file rw_file_perms;
[all …]
Ddrmserver.te21 allow drmserver drm_data_file:file create_file_perms;
23 allow drmserver { app_data_file autoplay_data_file}:file { read write getattr };
24 allow drmserver sdcard_type:file { read write getattr };
29 # /data/app/tlcd_sock socket file.
35 # Delete old socket file if present.
38 # After taking a video, drmserver looks at the video file.
42 allow drmserver apk_data_file:file { read getattr };
43 allow drmserver asec_apk_file:file { read getattr };
46 allow drmserver radio_data_file:file { read getattr };
50 allow drmserver oemfs:file r_file_perms;
Dinstall_recovery.te11 allow install_recovery shell_exec:file rx_file_perms;
14 allow install_recovery system_file:file rx_file_perms;
16 allow install_recovery toolbox_exec:file rx_file_perms;
23 # Create and delete /cache/saved.file
25 allow install_recovery { cache_file cache_recovery_file }:file create_file_perms;
28 auditallow install_recovery cache_recovery_file:file create_file_perms;
31 allow install_recovery proc_drop_caches:file w_file_perms;
Dsystem_app.te13 allow system_app system_app_data_file:{ file lnk_file } create_file_perms;
17 allow system_app misc_user_data_file:file create_file_perms;
22 # Read wallpaper file.
23 allow system_app wallpaper_file:file r_file_perms;
25 # Read icon file.
26 allow system_app icon_file:file r_file_perms;
44 allow system_app anr_data_file:file create_file_perms;
47 allow system_app asec_apk_file:file r_file_perms;
74 allow system_app sysfs_zram:file r_file_perms;
Dzygote.te17 allow zygote { appdomain autoplay_app }:file { r_file_perms };
23 allow zygote system_data_file:file r_file_perms;
26 allow zygote dalvikcache_data_file:file create_file_perms;
31 allow zygote resourcecache_data_file:file create_file_perms;
33 allow zygote dalvikcache_data_file:file execute;
37 allow zygote idmap_exec:file rx_file_perms;
38 allow zygote dex2oat_exec:file rx_file_perms;
51 allow zygote proc_cpuinfo:file mounton;
66 allow zygote zygote_exec:file rx_file_perms;
72 allow zygote rootfs:file r_file_perms;
[all …]
Dperfprofd.te14 allow perfprofd sysfs_devices_system_cpu:file rw_file_perms;
18 allow perfprofd system_file:file rx_file_perms;
20 # perfprofd reads a config file from /data/data/com.google.android.gms/files
21 allow perfprofd app_data_file:file r_file_perms;
25 # perfprofd opens a file for writing in /data/misc/perfprofd
26 allow perfprofd perfprofd_data_file:file create_file_perms;
46 # simpleperf needs open/read any file that turns up in a profile
48 allow perfprofd exec_type:file r_file_perms;
51 allow perfprofd debugfs_tracing:file r_file_perms;
54 allow perfprofd toolbox_exec:file rx_file_perms;
Dnfc.te13 # Data file accesses.
17 allow nfc sysfs_nfc_power_writable:file rw_file_perms;
18 allow nfc sysfs:file write;
21 allow nfc sysfs_usb:file write;
36 # already open bugreport file descriptors may be shared with
37 # the nfc process, from a file in
39 allow nfc shell_data_file:file read;
Dueventd.te2 # it lives in the rootfs and has no unique file type.
14 allow ueventd device:file create_file_perms;
16 allow ueventd sysfs:file rw_file_perms;
17 allow ueventd sysfs_usb:file w_file_perms;
18 allow ueventd sysfs_hwrandom:file w_file_perms;
19 allow ueventd sysfs_zram_uevent:file w_file_perms;
20 allow ueventd sysfs_type:{ file lnk_file } { relabelfrom relabelto setattr getattr };
22 allow ueventd sysfs_devices_system_cpu:file rw_file_perms;
30 allow ueventd efs_file:file r_file_perms;
Dapp.te4 ### This file is the base policy for all zygote spawned apps.
15 # Receive and use open file descriptors inherited from zygote.
20 allow appdomain zygote_exec:file rx_file_perms;
23 allow appdomain zygote_tmpfs:file read;
30 allow appdomain cgroup:file rw_file_perms;
34 allow appdomain dalvikcache_data_file:file r_file_perms;
49 allow appdomain method_trace_data_file:file { create w_file_perms };
70 # App sandbox file accesses.
76 allow appdomain system_data_file:file { execute execute_no_trans open execmod };
83 allow appdomain keychain_data_file:file r_file_perms;
[all …]
Dhealthd.te2 # it lives in the rootfs and has no unique file type.
18 # Write to state file.
20 allow healthd sysfs:file write;
23 allow healthd sysfs_usb:file write;
25 allow healthd sysfs_batteryinfo:file r_file_perms;
33 # only one file in /sys/fs/pstore
35 allow healthd pstorefs:file r_file_perms;
44 allow healthd proc_sysrq:file rw_file_perms;
Dvold.te13 allow vold cache_file:file { getattr read };
33 allow vold shell_exec:file rx_file_perms;
37 allow vold system_file:file x_file_perms;
45 allow vold sdcard_type:file create_file_perms; # TODO: deprecated in M
49 allow vold { mnt_media_rw_file storage_file sdcard_type }:file create_file_perms;
53 allow vold media_rw_data_file:file create_file_perms;
79 allow vold app_data_file:file rw_file_perms;
86 allow vold domain:{ file lnk_file } r_file_perms;
91 allow vold sysfs:file rw_file_perms;
94 allow vold sysfs_usb:file w_file_perms;
[all …]
/system/extras/tests/sdcard/
Dprofile_sdcard.sh32 local file="/tmp/sdcard-scalability.txt"
33 rm -f ${file}
34 echo "# Scalability tests" | tee -a ${file}
35 echo "# Kernel: $(print_kernel)" | tee -a ${file}
36 echo "# Sched features: $(print_sched_features)" | tee -a ${file}
37 echo "# StopWatch scalability total/cumulative duration 0.0 Samples: 1" | tee -a ${file}
38 echo "# Process Time" | tee -a ${file}
42 echo "$p $t" | tee -a ${file}
/system/extras/perfprofd/quipper/base/
Dlogging.cc60 LogMessage::LogMessage(const char* file, int line, LogSeverity severity) in LogMessage() argument
61 : severity_(severity), file_(file), line_(line) { in LogMessage()
62 Init(file, line); in LogMessage()
65 LogMessage::LogMessage(const char* file, int line, std::string* result) in LogMessage() argument
66 : severity_(LOG_FATAL), file_(file), line_(line) { in LogMessage()
67 Init(file, line); in LogMessage()
72 LogMessage::LogMessage(const char* file, int line, LogSeverity severity, in LogMessage() argument
74 : severity_(severity), file_(file), line_(line) { in LogMessage()
75 Init(file, line); in LogMessage()
/system/core/adb/
DSYNC.TXT1 This file tries to document file related requests a client can make
28 RECV - Retrieve a file from device
29 SEND - Send a file to device
30 STAT - Stat a file
41 2. A four-byte integer representing file mode.
42 3. A four-byte integer representing file size.
44 5. A four-byte integer representing file name length.
45 6. length number of bytes containing an utf-8 string representing the file
51 The remote file name is split into two parts separated by the last
53 encoded file mode containing the permissions of the file on device.
[all …]
/system/update_engine/payload_generator/
Dext2_filesystem.cc187 File& file = inodes[it_ino]; in GetFiles() local
189 file.name = "<group-descriptors>"; in GetFiles()
191 file.name = base::StringPrintf("<inode-%u>", it_ino); in GetFiles()
194 memset(&file.file_stat, 0, sizeof(file.file_stat)); in GetFiles()
195 file.file_stat.st_ino = it_ino; in GetFiles()
196 file.file_stat.st_mode = it_inode.i_mode; in GetFiles()
197 file.file_stat.st_nlink = it_inode.i_links_count; in GetFiles()
198 file.file_stat.st_uid = it_inode.i_uid; in GetFiles()
199 file.file_stat.st_gid = it_inode.i_gid; in GetFiles()
200 file.file_stat.st_size = it_inode.i_size; in GetFiles()
[all …]
Dext2_filesystem_unittest.cc87 for (const auto& file : files) { in TEST_F() local
88 EXPECT_EQ(map_files.end(), map_files.find(file.name)) in TEST_F()
89 << "File " << file.name << " repeated in the list."; in TEST_F()
90 map_files[file.name] = file; in TEST_F()
91 ExpectBlocksInRange(file.extents, fs->GetBlockCount()); in TEST_F()
115 for (const auto& file : files) { in TEST_F() local
118 EXPECT_EQ(map_files.end(), map_files.find(file.name)) in TEST_F()
119 << "File " << file.name << " repeated in the list."; in TEST_F()
120 map_files[file.name] = file; in TEST_F()
121 filenames.insert(file.name); in TEST_F()
[all …]
/system/extras/cpustats/
Dcpustats.c188 FILE *file; in get_cpu_count_from_file() local
192 file = fopen(filename, "r"); in get_cpu_count_from_file()
193 if (!file) die("Could not open %s\n", filename); in get_cpu_count_from_file()
194 if (!fgets(line, MAX_BUF_SIZE, file)) die("Could not get %s contents\n", filename); in get_cpu_count_from_file()
195 fclose(file); in get_cpu_count_from_file()
213 FILE *file; in get_freq_scales_count() local
219 file = fopen(filename, "r"); in get_freq_scales_count()
220 if (!file) die("Could not open %s\n", filename); in get_freq_scales_count()
223 fscanf(file, "%lu %*d\n", &freq); in get_freq_scales_count()
226 fclose(file); in get_freq_scales_count()
[all …]
/system/core/libnativebridge/tests/
DAndroid.mk31 $(foreach file,$(test_src_files), \
36 $(eval LOCAL_SRC_FILES := $(file)) \
37 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
41 $(foreach file,$(test_src_files), \
46 $(eval LOCAL_SRC_FILES := $(file)) \
47 $(eval LOCAL_MODULE := $(notdir $(file:%.cpp=%))) \
/system/extras/tests/cpueater/
Ddaemonize.c36 char *file = 0; in main() local
53 file = *argv; in main()
55 file = *++argv; in main()
71 if (file) { in main()
72 if(open(file, O_WRONLY|mode|O_CREAT, 0666) < 0) { in main()
73 perror(file); in main()

12345678910>>...16