1# bootanimation oneshot service 2type bootanim, domain; 3type bootanim_exec, exec_type, file_type; 4 5init_daemon_domain(bootanim) 6 7binder_use(bootanim) 8binder_call(bootanim, surfaceflinger) 9 10allow bootanim gpu_device:chr_file rw_file_perms; 11 12# /oem access 13allow bootanim oemfs:dir search; 14allow bootanim oemfs:file r_file_perms; 15 16allow bootanim audio_device:dir r_dir_perms; 17allow bootanim audio_device:chr_file rw_file_perms; 18 19allow bootanim surfaceflinger_service:service_manager find; 20 21# Allow access to ion memory allocation device 22allow bootanim ion_device:chr_file rw_file_perms; 23 24# Read access to pseudo filesystems. 25r_dir_file(bootanim, proc) 26allow bootanim proc_meminfo:file r_file_perms; 27r_dir_file(bootanim, sysfs) 28r_dir_file(bootanim, cgroup) 29 30# System file accesses. 31allow bootanim system_file:dir r_dir_perms; 32