2013-12-11 12:17:53 -08:00
|
|
|
# bootanimation oneshot service
|
2015-12-02 13:29:20 -08:00
|
|
|
type bootanim, domain;
|
2013-12-11 12:17:53 -08:00
|
|
|
type bootanim_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
binder_use(bootanim)
|
|
|
|
binder_call(bootanim, surfaceflinger)
|
2016-06-29 14:14:34 -07:00
|
|
|
binder_call(bootanim, audioserver)
|
2013-12-11 12:17:53 -08:00
|
|
|
|
|
|
|
allow bootanim gpu_device:chr_file rw_file_perms;
|
2014-07-14 23:31:31 -07:00
|
|
|
|
|
|
|
# /oem access
|
|
|
|
allow bootanim oemfs:dir search;
|
2014-09-22 13:03:52 -07:00
|
|
|
allow bootanim oemfs:file r_file_perms;
|
2014-07-25 15:19:47 -07:00
|
|
|
|
2014-09-29 06:18:19 -07:00
|
|
|
allow bootanim audio_device:dir r_dir_perms;
|
|
|
|
allow bootanim audio_device:chr_file rw_file_perms;
|
2014-10-06 11:56:31 -07:00
|
|
|
|
2016-06-29 14:14:34 -07:00
|
|
|
allow bootanim audioserver_service:service_manager find;
|
2014-12-11 16:01:27 -08:00
|
|
|
allow bootanim surfaceflinger_service:service_manager find;
|
2016-09-23 14:20:16 -07:00
|
|
|
allow bootanim audioserver_service:service_manager find;
|
2015-12-02 13:29:20 -08:00
|
|
|
|
|
|
|
# Allow access to ion memory allocation device
|
|
|
|
allow bootanim ion_device:chr_file rw_file_perms;
|
2016-10-12 06:38:00 -07:00
|
|
|
allow bootanim hal_graphics_allocator:fd use;
|
2015-12-02 13:29:20 -08:00
|
|
|
|
2016-10-17 19:58:22 -07:00
|
|
|
# Fences
|
|
|
|
allow bootanim hal_graphics_composer:fd use;
|
|
|
|
|
2015-12-02 13:29:20 -08:00
|
|
|
# Read access to pseudo filesystems.
|
|
|
|
r_dir_file(bootanim, proc)
|
2016-03-31 14:11:50 -07:00
|
|
|
allow bootanim proc_meminfo:file r_file_perms;
|
2015-12-02 13:29:20 -08:00
|
|
|
r_dir_file(bootanim, sysfs)
|
|
|
|
r_dir_file(bootanim, cgroup)
|
|
|
|
|
|
|
|
# System file accesses.
|
|
|
|
allow bootanim system_file:dir r_dir_perms;
|