1# Filesystem types 2type labeledfs, fs_type; 3type pipefs, fs_type; 4type sockfs, fs_type; 5type rootfs, fs_type; 6type proc, fs_type, proc_type; 7type binderfs, fs_type; 8type binderfs_logs, fs_type; 9type binderfs_logs_proc, fs_type; 10type binderfs_logs_stats, fs_type; 11type binderfs_features, fs_type; 12# Security-sensitive proc nodes that should not be writable to most. 13type proc_security, fs_type, proc_type; 14type proc_drop_caches, fs_type, proc_type; 15type proc_overcommit_memory, fs_type, proc_type; 16type proc_min_free_order_shift, fs_type, proc_type; 17type proc_kpageflags, fs_type, proc_type; 18type proc_watermark_boost_factor, fs_type, proc_type; 19# proc, sysfs, or other nodes that permit configuration of kernel usermodehelpers. 20type usermodehelper, fs_type, proc_type; 21type sysfs_usermodehelper, fs_type, sysfs_type; 22type proc_qtaguid_ctrl, fs_type, mlstrustedobject, proc_type; 23type proc_qtaguid_stat, fs_type, mlstrustedobject, proc_type; 24type proc_bluetooth_writable, fs_type, proc_type; 25type proc_abi, fs_type, proc_type; 26type proc_asound, fs_type, proc_type; 27type proc_bootconfig, fs_type, proc_type; 28type proc_bpf, fs_type, proc_type; 29type proc_buddyinfo, fs_type, proc_type; 30type proc_cmdline, fs_type, proc_type; 31type proc_cpu_alignment, fs_type, proc_type; 32type proc_cpuinfo, fs_type, proc_type; 33type proc_dirty, fs_type, proc_type; 34type proc_diskstats, fs_type, proc_type; 35type proc_extra_free_kbytes, fs_type, proc_type; 36type proc_filesystems, fs_type, proc_type; 37type proc_fs_verity, fs_type, proc_type; 38type proc_hostname, fs_type, proc_type; 39type proc_hung_task, fs_type, proc_type; 40type proc_interrupts, fs_type, proc_type; 41type proc_iomem, fs_type, proc_type; 42type proc_kallsyms, fs_type, proc_type; 43type proc_keys, fs_type, proc_type; 44type proc_kmsg, fs_type, proc_type; 45type proc_loadavg, fs_type, proc_type; 46type proc_locks, fs_type, proc_type; 47type proc_lowmemorykiller, fs_type, proc_type; 48type proc_max_map_count, fs_type, proc_type; 49type proc_meminfo, fs_type, proc_type; 50type proc_misc, fs_type, proc_type; 51type proc_modules, fs_type, proc_type; 52type proc_mounts, fs_type, proc_type; 53type proc_net, fs_type, proc_type, proc_net_type; 54type proc_net_tcp_udp, fs_type, proc_type; 55type proc_page_cluster, fs_type, proc_type; 56type proc_pagetypeinfo, fs_type, proc_type; 57type proc_panic, fs_type, proc_type; 58type proc_perf, fs_type, proc_type; 59type proc_pid_max, fs_type, proc_type; 60type proc_pipe_conf, fs_type, proc_type; 61type proc_pressure_cpu, fs_type, proc_type; 62type proc_pressure_io, fs_type, proc_type; 63type proc_pressure_mem, fs_type, proc_type; 64type proc_random, fs_type, proc_type; 65type proc_sched, fs_type, proc_type; 66type proc_slabinfo, fs_type, proc_type; 67type proc_stat, fs_type, proc_type; 68type proc_swaps, fs_type, proc_type; 69type proc_sysrq, fs_type, proc_type; 70type proc_timer, fs_type, proc_type; 71type proc_tty_drivers, fs_type, proc_type; 72type proc_uid_cputime_showstat, fs_type, proc_type; 73type proc_uid_cputime_removeuid, fs_type, proc_type; 74type proc_uid_io_stats, fs_type, proc_type; 75type proc_uid_procstat_set, fs_type, proc_type; 76type proc_uid_time_in_state, fs_type, proc_type; 77type proc_uid_concurrent_active_time, fs_type, proc_type; 78type proc_uid_concurrent_policy_time, fs_type, proc_type; 79type proc_uid_cpupower, fs_type, proc_type; 80type proc_uptime, fs_type, proc_type; 81type proc_version, fs_type, proc_type; 82type proc_vmallocinfo, fs_type, proc_type; 83type proc_vmstat, fs_type, proc_type; 84type proc_watermark_scale_factor, fs_type, proc_type; 85type proc_zoneinfo, fs_type, proc_type; 86type proc_vendor_sched, proc_type, fs_type; 87type selinuxfs, fs_type, mlstrustedobject; 88type fusectlfs, fs_type; 89type cgroup, fs_type, mlstrustedobject; 90type cgroup_v2, fs_type; 91type sysfs, fs_type, sysfs_type, mlstrustedobject; 92type sysfs_android_usb, fs_type, sysfs_type; 93type sysfs_uio, sysfs_type, fs_type; 94type sysfs_batteryinfo, fs_type, sysfs_type; 95type sysfs_bluetooth_writable, fs_type, sysfs_type, mlstrustedobject; 96type sysfs_devfreq_cur, fs_type, sysfs_type; 97type sysfs_devfreq_dir, fs_type, sysfs_type; 98type sysfs_devices_block, fs_type, sysfs_type; 99type sysfs_dm, fs_type, sysfs_type; 100type sysfs_dm_verity, fs_type, sysfs_type; 101type sysfs_dma_heap, fs_type, sysfs_type; 102type sysfs_dmabuf_stats, fs_type, sysfs_type; 103type sysfs_dt_firmware_android, fs_type, sysfs_type; 104type sysfs_extcon, fs_type, sysfs_type; 105type sysfs_ion, fs_type, sysfs_type; 106type sysfs_ipv4, fs_type, sysfs_type; 107type sysfs_kernel_notes, fs_type, sysfs_type, mlstrustedobject; 108type sysfs_leds, fs_type, sysfs_type; 109type sysfs_loop, fs_type, sysfs_type; 110type sysfs_gpu, fs_type, sysfs_type; 111type sysfs_hwrandom, fs_type, sysfs_type; 112type sysfs_nfc_power_writable, fs_type, sysfs_type, mlstrustedobject; 113type sysfs_wake_lock, fs_type, sysfs_type; 114type sysfs_net, fs_type, sysfs_type; 115type sysfs_power, fs_type, sysfs_type; 116type sysfs_rtc, fs_type, sysfs_type; 117type sysfs_suspend_stats, fs_type, sysfs_type; 118type sysfs_switch, fs_type, sysfs_type; 119type sysfs_transparent_hugepage, fs_type, sysfs_type; 120type sysfs_lru_gen_enabled, fs_type, sysfs_type; 121type sysfs_usb, fs_type, sysfs_type; 122type sysfs_wakeup, fs_type, sysfs_type; 123type sysfs_wakeup_reasons, fs_type, sysfs_type; 124type sysfs_fs_ext4_features, sysfs_type, fs_type; 125type sysfs_fs_f2fs, sysfs_type, fs_type; 126type sysfs_fs_fuse_bpf, sysfs_type, fs_type; 127type sysfs_fs_fuse_features, sysfs_type, fs_type; 128type sysfs_fs_incfs_features, sysfs_type, fs_type; 129type sysfs_fs_incfs_metrics, sysfs_type, fs_type; 130type sysfs_vendor_sched, sysfs_type, fs_type; 131userdebug_or_eng(` 132 typeattribute sysfs_vendor_sched mlstrustedobject; 133') 134type fs_bpf, fs_type, bpffs_type; 135# TODO: S+ fs_bpf_tethering (used by mainline) should be private 136type fs_bpf_tethering, fs_type, bpffs_type; 137type fs_bpf_vendor, fs_type, bpffs_type; 138type configfs, fs_type; 139# /sys/devices/cs_etm 140type sysfs_devices_cs_etm, fs_type, sysfs_type; 141# /sys/devices/system/cpu 142type sysfs_devices_system_cpu, fs_type, sysfs_type; 143# /sys/module/lowmemorykiller 144type sysfs_lowmemorykiller, fs_type, sysfs_type; 145# /sys/module/wlan/parameters/fwpath 146type sysfs_wlan_fwpath, fs_type, sysfs_type; 147type sysfs_vibrator, fs_type, sysfs_type; 148type sysfs_uhid, fs_type, sysfs_type; 149type sysfs_thermal, sysfs_type, fs_type; 150 151type sysfs_zram, fs_type, sysfs_type; 152type sysfs_zram_uevent, fs_type, sysfs_type; 153type inotify, fs_type, mlstrustedobject; 154type devpts, fs_type, mlstrustedobject; 155type tmpfs, fs_type; 156type shm, fs_type; 157type mqueue, fs_type; 158type fuse, fusefs_type, fs_type, mlstrustedobject; 159type fuseblk, sdcard_type, fusefs_type, fs_type, mlstrustedobject; 160type sdcardfs, sdcard_type, fs_type, mlstrustedobject; 161type vfat, sdcard_type, fs_type, mlstrustedobject; 162type exfat, sdcard_type, fs_type, mlstrustedobject; 163type debugfs, fs_type, debugfs_type; 164type debugfs_kprobes, fs_type, debugfs_type; 165type debugfs_mmc, fs_type, debugfs_type; 166type debugfs_mm_events_tracing, fs_type, debugfs_type, tracefs_type; 167type debugfs_trace_marker, fs_type, debugfs_type, mlstrustedobject, tracefs_type; 168type debugfs_tracing, fs_type, debugfs_type, mlstrustedobject, tracefs_type; 169type debugfs_tracing_debug, fs_type, debugfs_type, mlstrustedobject, tracefs_type; 170type debugfs_tracing_instances, fs_type, debugfs_type, tracefs_type; 171type debugfs_tracing_printk_formats, fs_type, debugfs_type, tracefs_type; 172type debugfs_wakeup_sources, fs_type, debugfs_type; 173type debugfs_wifi_tracing, fs_type, debugfs_type, tracefs_type; 174type securityfs, fs_type; 175 176type pstorefs, fs_type; 177type functionfs, fs_type, mlstrustedobject; 178type oemfs, fs_type, contextmount_type; 179type usbfs, fs_type; 180type binfmt_miscfs, fs_type; 181type app_fusefs, fs_type, fusefs_type, contextmount_type; 182 183# File types 184type unlabeled, file_type; 185 186# Default type for anything under /system. 187type system_file, system_file_type, file_type; 188# Default type for /system/asan.options 189type system_asan_options_file, system_file_type, file_type; 190# Type for /system/etc/event-log-tags (liblog implementation detail) 191type system_event_log_tags_file, system_file_type, file_type; 192# Default type for anything under /system/lib[64]. 193type system_lib_file, system_file_type, file_type; 194# system libraries that are available only to bootstrap processes 195type system_bootstrap_lib_file, system_file_type, file_type; 196# Default type for the group file /system/etc/group. 197type system_group_file, system_file_type, file_type; 198# Default type for linker executable /system/bin/linker[64]. 199type system_linker_exec, system_file_type, file_type; 200# Default type for linker config /system/etc/ld.config.*. 201type system_linker_config_file, system_file_type, file_type; 202# Default type for the passwd file /system/etc/passwd. 203type system_passwd_file, system_file_type, file_type; 204# Default type for linker config /system/etc/seccomp_policy/*. 205type system_seccomp_policy_file, system_file_type, file_type; 206# Default type for cacerts in /system/etc/security/cacerts/*. 207type system_security_cacerts_file, system_file_type, file_type; 208# Default type for /system/bin/tcpdump. 209type tcpdump_exec, system_file_type, exec_type, file_type; 210# Default type for zoneinfo files in /system/usr/share/zoneinfo/*. 211type system_zoneinfo_file, system_file_type, file_type; 212# Cgroups description file under /system/etc/cgroups.json 213type cgroup_desc_file, system_file_type, file_type; 214# Cgroups description file under /system/etc/task_profiles/cgroups_*.json 215type cgroup_desc_api_file, system_file_type, file_type; 216# Vendor cgroups description file under /vendor/etc/cgroups.json 217type vendor_cgroup_desc_file, vendor_file_type, file_type; 218# Task profiles file under /system/etc/task_profiles.json 219type task_profiles_file, system_file_type, file_type; 220# Task profiles file under /system/etc/task_profiles/task_profiles_*.json 221type task_profiles_api_file, system_file_type, file_type; 222# Vendor task profiles file under /vendor/etc/task_profiles.json 223type vendor_task_profiles_file, vendor_file_type, file_type; 224# Type for /system/apex/com.android.art 225type art_apex_dir, system_file_type, file_type; 226# /linkerconfig(/.*)? 227type linkerconfig_file, file_type; 228# Control files under /data/incremental 229type incremental_control_file, file_type, data_file_type, core_data_file_type; 230 231# Default type for directories search for 232# HAL implementations 233type vendor_hal_file, vendor_file_type, file_type; 234# Default type for under /vendor or /system/vendor 235type vendor_file, vendor_file_type, file_type; 236# Default type for everything in /vendor/app 237type vendor_app_file, vendor_file_type, file_type; 238# Default type for everything under /vendor/etc/ 239type vendor_configs_file, vendor_file_type, file_type; 240# Default type for all *same process* HALs and their lib/bin dependencies. 241# e.g. libEGL_xxx.so, android.hardware.graphics.mapper@2.0-impl.so 242type same_process_hal_file, vendor_file_type, file_type; 243# Default type for vndk-sp libs. /vendor/lib/vndk-sp 244type vndk_sp_file, vendor_file_type, file_type; 245# Default type for everything in /vendor/framework 246type vendor_framework_file, vendor_file_type, file_type; 247# Default type for everything in /vendor/overlay 248type vendor_overlay_file, vendor_file_type, file_type; 249# Type for all vendor public libraries. These libs should only be exposed to 250# apps. ABI stability of these libs is vendor's responsibility. 251type vendor_public_lib_file, vendor_file_type, file_type; 252# Type for all vendor public libraries for system. These libs should only be exposed to 253# system. ABI stability of these libs is vendor's responsibility. 254type vendor_public_framework_file, vendor_file_type, file_type; 255 256# Input configuration 257type vendor_keylayout_file, vendor_file_type, file_type; 258type vendor_keychars_file, vendor_file_type, file_type; 259type vendor_idc_file, vendor_file_type, file_type; 260 261# Type for vendor uuid mapping config file 262type vendor_uuid_mapping_config_file, vendor_file_type, file_type; 263 264# SoC-specific virtual machine disk files 265type vendor_vm_file, vendor_file_type, file_type; 266# SoC-specific virtual machine disk files that are mutable 267type vendor_vm_data_file, vendor_file_type, file_type; 268 269# /metadata partition itself 270type metadata_file, file_type; 271# Vold files within /metadata 272type vold_metadata_file, file_type; 273# GSI files within /metadata 274type gsi_metadata_file, gsi_metadata_file_type, file_type; 275# DSU (GSI) files within /metadata that are globally readable. 276type gsi_public_metadata_file, gsi_metadata_file_type, file_type; 277# system_server shares Weaver slot information in /metadata 278type password_slot_metadata_file, file_type; 279# APEX files within /metadata 280type apex_metadata_file, file_type; 281# libsnapshot files within /metadata 282type ota_metadata_file, file_type; 283# property files within /metadata/bootstat 284type metadata_bootstat_file, file_type; 285# userspace reboot files within /metadata/userspacereboot 286type userspace_reboot_metadata_file, file_type; 287# Staged install files within /metadata/staged-install 288type staged_install_file, file_type; 289# Metadata information within /metadata/watchdog 290type watchdog_metadata_file, file_type; 291# Repair mode files within /metadata/repair-mode 292type repair_mode_metadata_file, file_type; 293 294# Type for /dev/cpu_variant:.*. 295type dev_cpu_variant, file_type; 296# Speedup access for trusted applications to the runtime event tags 297type runtime_event_log_tags_file, file_type; 298# Type for /system/bin/logcat. 299type logcat_exec, system_file_type, exec_type, file_type; 300# Speedup access to cgroup map file 301type cgroup_rc_file, file_type; 302# /cores for coredumps on userdebug / eng builds 303type coredump_file, file_type; 304# Type of /data itself 305type system_data_root_file, file_type, data_file_type, core_data_file_type; 306# Default type for anything under /data. 307type system_data_file, file_type, data_file_type, core_data_file_type; 308# Default type for directories containing per-user encrypted directories, such 309# as /data/user and /data/user_de. 310type system_userdir_file, file_type, data_file_type, core_data_file_type; 311# Type for /data/system/packages.list. 312# TODO(b/129332765): Narrow down permissions to this. 313# Find out users of system_data_file that should be granted only this. 314type packages_list_file, file_type, data_file_type, core_data_file_type; 315type game_mode_intervention_list_file, file_type, data_file_type, core_data_file_type; 316# Default type for anything inside /data/vendor_{ce,de}. 317type vendor_data_file, file_type, data_file_type; 318# Type for /data/vendor_{ce,de} themselves. This has core_data_file_type 319# because these directories themselves are platform-managed; only the files 320# *inside* them are vendor data. (Somewhat similar to system_data_root_file.) 321type vendor_userdir_file, file_type, data_file_type, core_data_file_type; 322# Unencrypted data 323type unencrypted_data_file, file_type, data_file_type, core_data_file_type; 324# installd-create files in /data/misc/installd such as layout_version 325type install_data_file, file_type, data_file_type, core_data_file_type; 326# /data/drm - DRM plugin data 327type drm_data_file, file_type, data_file_type, core_data_file_type; 328# /data/adb - adb debugging files 329type adb_data_file, file_type, data_file_type, core_data_file_type; 330# /data/anr - ANR traces 331type anr_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 332# /data/tombstones - core dumps 333type tombstone_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 334# /data/vendor/tombstones/wifi - vendor wifi dumps 335type tombstone_wifi_data_file, file_type, data_file_type; 336# /data/apex - APEX data files 337type apex_data_file, file_type, data_file_type, core_data_file_type; 338# /data/app - user-installed apps 339type apk_data_file, file_type, data_file_type, core_data_file_type; 340type apk_tmp_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 341# /data/app-private - forward-locked apps 342type apk_private_data_file, file_type, data_file_type, core_data_file_type; 343type apk_private_tmp_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 344# /data/dalvik-cache 345type dalvikcache_data_file, file_type, data_file_type, core_data_file_type; 346# /data/ota 347type ota_data_file, file_type, data_file_type, core_data_file_type; 348# /data/ota_package 349type ota_package_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 350# /data/misc/profiles 351type user_profile_root_file, file_type, data_file_type, core_data_file_type; 352type user_profile_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 353# /data/misc/profman 354type profman_dump_data_file, file_type, data_file_type, core_data_file_type; 355# /data/misc/prereboot 356type prereboot_data_file, file_type, data_file_type, core_data_file_type; 357# /data/resource-cache 358type resourcecache_data_file, file_type, data_file_type, core_data_file_type; 359# /data/local - writable by shell 360type shell_data_file, file_type, data_file_type, core_data_file_type, app_data_file_type, mlstrustedobject; 361# /data/property 362type property_data_file, file_type, data_file_type, core_data_file_type; 363# /data/bootchart 364type bootchart_data_file, file_type, data_file_type, core_data_file_type; 365# /data/system/dropbox 366type dropbox_data_file, file_type, data_file_type, core_data_file_type; 367# /data/system/heapdump 368type heapdump_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 369# /data/nativetest 370type nativetest_data_file, file_type, data_file_type, core_data_file_type; 371# /data/local/tests 372type shell_test_data_file, file_type, data_file_type, core_data_file_type; 373# /data/system_de/0/ringtones 374type ringtone_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 375# /data/preloads 376type preloads_data_file, file_type, data_file_type, core_data_file_type; 377# /data/preloads/media 378type preloads_media_file, file_type, data_file_type, core_data_file_type; 379# /data/misc/dhcp and /data/misc/dhcp-6.8.2 380type dhcp_data_file, file_type, data_file_type, core_data_file_type; 381# /data/server_configurable_flags 382type server_configurable_flags_data_file, file_type, data_file_type, core_data_file_type; 383# /data/app-staging 384type staging_data_file, file_type, data_file_type, core_data_file_type; 385# /vendor/apex 386type vendor_apex_file, vendor_file_type, file_type; 387# /data/system/shutdown-checkpoints 388type shutdown_checkpoints_system_data_file, file_type, data_file_type, core_data_file_type; 389 390# Mount locations managed by vold 391type mnt_media_rw_file, file_type; 392type mnt_user_file, file_type; 393type mnt_pass_through_file, file_type; 394type mnt_expand_file, file_type; 395type mnt_sdcard_file, file_type; 396type storage_file, file_type; 397 398# Label for storage dirs which are just mount stubs 399type mnt_media_rw_stub_file, file_type; 400type storage_stub_file, file_type; 401 402# Mount location for read-write vendor partitions. 403type mnt_vendor_file, file_type; 404 405# Mount location for read-write product partitions. 406type mnt_product_file, file_type; 407 408# Mount point used for APEX images 409type apex_mnt_dir, file_type; 410 411# /apex/apex-info-list.xml created by apexd 412type apex_info_file, file_type; 413 414# /postinstall: Mount point used by update_engine to run postinstall. 415type postinstall_mnt_dir, file_type; 416# Files inside the /postinstall mountpoint are all labeled as postinstall_file. 417type postinstall_file, file_type; 418# /postinstall/apex: Mount point used for APEX images within /postinstall. 419type postinstall_apex_mnt_dir, file_type; 420 421# /data_mirror: Contains mirror directory for storing all apps data. 422type mirror_data_file, file_type, core_data_file_type; 423 424# /data/misc subdirectories 425type adb_keys_file, file_type, data_file_type, core_data_file_type; 426type apex_system_server_data_file, file_type, data_file_type, core_data_file_type, apex_data_file_type; 427type apex_module_data_file, file_type, data_file_type, core_data_file_type; 428type apex_ota_reserved_file, file_type, data_file_type, core_data_file_type; 429type apex_rollback_data_file, file_type, data_file_type, core_data_file_type; 430type appcompat_data_file, file_type, data_file_type, core_data_file_type; 431type audio_data_file, file_type, data_file_type, core_data_file_type; 432type audioserver_data_file, file_type, data_file_type, core_data_file_type; 433type bluetooth_data_file, file_type, data_file_type, core_data_file_type, app_data_file_type; 434type bluetooth_logs_data_file, file_type, data_file_type, core_data_file_type; 435type bootstat_data_file, file_type, data_file_type, core_data_file_type; 436type boottrace_data_file, file_type, data_file_type, core_data_file_type; 437type camera_data_file, file_type, data_file_type, core_data_file_type; 438type credstore_data_file, file_type, data_file_type, core_data_file_type; 439type gatekeeper_data_file, file_type, data_file_type, core_data_file_type; 440type incident_data_file, file_type, data_file_type, core_data_file_type; 441type keychain_data_file, file_type, data_file_type, core_data_file_type; 442type keystore_data_file, file_type, data_file_type, core_data_file_type; 443type media_data_file, file_type, data_file_type, core_data_file_type; 444type media_rw_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 445type media_userdir_file, file_type, data_file_type, core_data_file_type; 446type misc_user_data_file, file_type, data_file_type, core_data_file_type; 447type net_data_file, file_type, data_file_type, core_data_file_type; 448type network_watchlist_data_file, file_type, data_file_type, core_data_file_type; 449type nfc_data_file, file_type, data_file_type, core_data_file_type, app_data_file_type; 450type nfc_logs_data_file, file_type, data_file_type, core_data_file_type; 451type radio_data_file, file_type, data_file_type, core_data_file_type, app_data_file_type, mlstrustedobject; 452type recovery_data_file, file_type, data_file_type, core_data_file_type; 453type shared_relro_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 454type snapshotctl_log_data_file, file_type, data_file_type, core_data_file_type; 455type stats_config_data_file, file_type, data_file_type, core_data_file_type; 456type stats_data_file, file_type, data_file_type, core_data_file_type; 457type systemkeys_data_file, file_type, data_file_type, core_data_file_type; 458type textclassifier_data_file, file_type, data_file_type, core_data_file_type; 459type trace_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 460type vpn_data_file, file_type, data_file_type, core_data_file_type; 461type wifi_data_file, file_type, data_file_type, core_data_file_type; 462type vold_data_file, file_type, data_file_type, core_data_file_type; 463type tee_data_file, file_type, data_file_type; 464type update_engine_data_file, file_type, data_file_type, core_data_file_type; 465type update_engine_log_data_file, file_type, data_file_type, core_data_file_type; 466# /data/misc/trace for method traces on userdebug / eng builds 467type method_trace_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 468type gsi_data_file, file_type, data_file_type, core_data_file_type; 469type radio_core_data_file, file_type, data_file_type, core_data_file_type; 470 471# /data/data subdirectories - app sandboxes 472type app_data_file, file_type, data_file_type, core_data_file_type, app_data_file_type; 473# /data/data subdirectories - priv-app sandboxes 474type privapp_data_file, file_type, data_file_type, core_data_file_type, app_data_file_type; 475# /data/data subdirectory for system UID apps. 476type system_app_data_file, file_type, data_file_type, core_data_file_type, app_data_file_type, mlstrustedobject; 477# Compatibility with type name used in Android 4.3 and 4.4. 478# Default type for anything under /cache 479type cache_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 480# Type for /cache/overlay /mnt/scratch/overlay 481type overlayfs_file, file_type, data_file_type, core_data_file_type; 482# Type for /cache/backup_stage/* (fd interchange with apps) 483type cache_backup_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 484# type for anything under /cache/backup (local transport storage) 485type cache_private_backup_file, file_type, data_file_type, core_data_file_type; 486# Type for anything under /cache/recovery 487type cache_recovery_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 488# Default type for anything under /efs 489type efs_file, file_type; 490# Type for wallpaper file. 491type wallpaper_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 492# Type for shortcut manager icon file. 493type shortcut_manager_icons, file_type, data_file_type, core_data_file_type, mlstrustedobject; 494# Type for user icon file. 495type icon_file, file_type, data_file_type, core_data_file_type; 496# /mnt/asec 497type asec_apk_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 498# Elements of asec files (/mnt/asec) that are world readable 499type asec_public_file, file_type, data_file_type, core_data_file_type; 500# /data/app-asec 501type asec_image_file, file_type, data_file_type, core_data_file_type; 502# /data/backup and /data/secure/backup 503type backup_data_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 504# All devices have bluetooth efs files. But they 505# vary per device, so this type is used in per 506# device policy 507type bluetooth_efs_file, file_type; 508# Type for fingerprint template file 509type fingerprintd_data_file, file_type, data_file_type, core_data_file_type; 510# Type for _new_ fingerprint template file 511type fingerprint_vendor_data_file, file_type, data_file_type; 512# Type for appfuse file. 513type app_fuse_file, file_type, data_file_type, core_data_file_type, mlstrustedobject; 514# Type for face template file 515type face_vendor_data_file, file_type, data_file_type; 516# Type for iris template file 517type iris_vendor_data_file, file_type, data_file_type; 518 519# Socket types 520type adbd_socket, file_type, coredomain_socket; 521type bluetooth_socket, file_type, data_file_type, core_data_file_type, coredomain_socket; 522type dnsproxyd_socket, file_type, coredomain_socket, mlstrustedobject; 523type dumpstate_socket, file_type, coredomain_socket; 524type fwmarkd_socket, file_type, coredomain_socket, mlstrustedobject; 525type lmkd_socket, file_type, coredomain_socket; 526type logd_socket, file_type, coredomain_socket, mlstrustedobject; 527type logdr_socket, file_type, coredomain_socket, mlstrustedobject; 528type logdw_socket, file_type, coredomain_socket, mlstrustedobject; 529type mdns_socket, file_type, coredomain_socket; 530type mdnsd_socket, file_type, coredomain_socket, mlstrustedobject; 531type misc_logd_file, coredomain_socket, file_type, data_file_type, core_data_file_type; 532type mtpd_socket, file_type, coredomain_socket; 533type property_socket, file_type, coredomain_socket, mlstrustedobject; 534type racoon_socket, file_type, coredomain_socket; 535type recovery_socket, file_type, coredomain_socket; 536type rild_socket, file_type; 537type rild_debug_socket, file_type; 538type snapuserd_socket, file_type, coredomain_socket; 539type snapuserd_proxy_socket, file_type, coredomain_socket; 540type statsdw_socket, file_type, coredomain_socket, mlstrustedobject; 541type system_wpa_socket, file_type, data_file_type, core_data_file_type, coredomain_socket; 542type system_ndebug_socket, file_type, data_file_type, core_data_file_type, coredomain_socket, mlstrustedobject; 543type system_unsolzygote_socket, file_type, data_file_type, core_data_file_type, coredomain_socket, mlstrustedobject; 544type tombstoned_crash_socket, file_type, coredomain_socket, mlstrustedobject; 545type tombstoned_java_trace_socket, file_type, mlstrustedobject; 546type tombstoned_intercept_socket, file_type, coredomain_socket; 547type traced_consumer_socket, file_type, coredomain_socket, mlstrustedobject; 548type traced_perf_socket, file_type, coredomain_socket, mlstrustedobject; 549type traced_producer_socket, file_type, coredomain_socket, mlstrustedobject; 550type uncrypt_socket, file_type, coredomain_socket; 551type wpa_socket, file_type, data_file_type, core_data_file_type; 552type zygote_socket, file_type, coredomain_socket; 553type heapprofd_socket, file_type, coredomain_socket, mlstrustedobject; 554# UART (for GPS) control proc file 555type gps_control, file_type; 556 557# PDX endpoint types 558type pdx_display_dir, pdx_endpoint_dir_type, file_type; 559type pdx_performance_dir, pdx_endpoint_dir_type, file_type; 560type pdx_bufferhub_dir, pdx_endpoint_dir_type, file_type; 561 562pdx_service_socket_types(display_client, pdx_display_dir) 563pdx_service_socket_types(display_manager, pdx_display_dir) 564pdx_service_socket_types(display_screenshot, pdx_display_dir) 565pdx_service_socket_types(display_vsync, pdx_display_dir) 566pdx_service_socket_types(performance_client, pdx_performance_dir) 567pdx_service_socket_types(bufferhub_client, pdx_bufferhub_dir) 568 569# file_contexts files 570type file_contexts_file, system_file_type, file_type; 571 572# mac_permissions file 573type mac_perms_file, system_file_type, file_type; 574 575# property_contexts file 576type property_contexts_file, system_file_type, file_type; 577 578# seapp_contexts file 579type seapp_contexts_file, system_file_type, file_type; 580 581# sepolicy files binary and others 582type sepolicy_file, system_file_type, file_type; 583 584# service_contexts file 585type service_contexts_file, system_file_type, file_type; 586 587# keystore2_key_contexts_file 588type keystore2_key_contexts_file, system_file_type, file_type; 589 590# vendor service_contexts file 591type vendor_service_contexts_file, vendor_file_type, file_type; 592 593# hwservice_contexts file 594type hwservice_contexts_file, system_file_type, file_type; 595 596# vndservice_contexts file 597type vndservice_contexts_file, file_type; 598 599# /sys/kernel/tracing/instances/bootreceiver for monitoring kernel memory corruptions. 600type debugfs_bootreceiver_tracing, fs_type, debugfs_type, tracefs_type; 601 602# kernel modules 603type vendor_kernel_modules, vendor_file_type, file_type; 604 605# system_dlkm 606type system_dlkm_file, system_dlkm_file_type, file_type; 607 608# Allow files to be created in their appropriate filesystems. 609allow fs_type self:filesystem associate; 610allow cgroup tmpfs:filesystem associate; 611allow cgroup_v2 tmpfs:filesystem associate; 612allow cgroup_rc_file tmpfs:filesystem associate; 613allow sysfs_type sysfs:filesystem associate; 614allow debugfs_type { debugfs debugfs_tracing debugfs_tracing_debug }:filesystem associate; 615allow file_type labeledfs:filesystem associate; 616allow file_type tmpfs:filesystem associate; 617allow file_type rootfs:filesystem associate; 618allow dev_type tmpfs:filesystem associate; 619allow app_fuse_file app_fusefs:filesystem associate; 620allow postinstall_file self:filesystem associate; 621allow proc_net proc:filesystem associate; 622 623# asanwrapper (run a sanitized app_process, to be used with wrap properties) 624with_asan(`type asanwrapper_exec, exec_type, file_type;') 625 626# Deprecated in SDK version 28 627type audiohal_data_file, file_type, data_file_type, core_data_file_type; 628 629# It's a bug to assign the file_type attribute and fs_type attribute 630# to any type. Do not allow it. 631# 632# For example, the following is a bug: 633# type apk_data_file, file_type, data_file_type, fs_type; 634# Should be: 635# type apk_data_file, file_type, data_file_type; 636neverallow fs_type file_type:filesystem associate; 637