blob: d9be72f95f65b64b7f5851be8cd59d5bd89276b1 [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute bootanim coredomain;
2
dcashmancc39f632016-07-22 13:13:11 -07003init_daemon_domain(bootanim)
Joel Galensonf7ec4132018-02-14 16:32:28 -08004
5# b/68864350
6dontaudit bootanim unlabeled:dir search;
Inseob Kim55e5c9b2020-03-04 17:20:35 +09007
Jeff Vander Stoep67896ee2020-04-02 13:36:17 +02008# Bootanim should not be reading default vendor-defined properties.
9dontaudit bootanim vendor_default_prop:file read;
10
Inseob Kim55e5c9b2020-03-04 17:20:35 +090011# Read ro.boot.bootreason b/30654343
12get_prop(bootanim, bootloader_boot_reason_prop)
Robert Horvath85049382021-04-15 14:55:37 +000013
Nicolas Geoffray6a311472021-04-28 13:57:11 +010014get_prop(bootanim, bootanim_config_prop)
15
16# Allow updating boot animation status.
17set_prop(bootanim, bootanim_system_prop)
Josh Yang1d967dd2021-12-23 14:37:41 -080018
Lee George Thomas407e1cf2023-07-25 15:02:33 -070019# Allow accessing /data/misc/bootanim
Josh Yang1d967dd2021-12-23 14:37:41 -080020r_dir_file(bootanim, bootanim_data_file)
Jooyung Han87889b62023-11-06 18:16:40 +090021
22# Allow accessing vendor apex for EGL/GLES
23allow bootanim vendor_apex_metadata_file:dir r_dir_perms;
Inseob Kim75806ef2024-03-27 17:18:41 +090024
25hal_client_domain(bootanim, hal_configstore)
26hal_client_domain(bootanim, hal_graphics_allocator)
27hal_client_domain(bootanim, hal_graphics_composer)
28
29binder_use(bootanim)
30binder_call(bootanim, surfaceflinger)
31binder_call(bootanim, audioserver)
32
33hwbinder_use(bootanim)
34
35allow bootanim gpu_device:chr_file rw_file_perms;
36allow bootanim gpu_device:dir r_dir_perms;
37allow bootanim sysfs_gpu:file r_file_perms;
38
39# /oem access
40allow bootanim oemfs:dir r_dir_perms;
41# boot animations on oem are stored with specific label
42allow bootanim bootanim_oem_file:file r_file_perms;
43
44allow bootanim audio_device:dir r_dir_perms;
45allow bootanim audio_device:chr_file rw_file_perms;
46
47allow bootanim audioserver_service:service_manager find;
48allow bootanim surfaceflinger_service:service_manager find;
49allow bootanim surfaceflinger:unix_stream_socket { read write };
50
51# Allow access to ion memory allocation device
52allow bootanim ion_device:chr_file rw_file_perms;
53
54# Allow access to DMA-BUF system heap
55allow bootanim dmabuf_system_heap_device:chr_file r_file_perms;
56
57allow bootanim hal_graphics_allocator:fd use;
58
59# Fences
60allow bootanim hal_graphics_composer:fd use;
61
62# Read access to pseudo filesystems.
63allow bootanim proc_meminfo:file r_file_perms;
64
65# System file accesses.
66allow bootanim system_file:dir r_dir_perms;