2013-12-11 21:17:53 +01:00
|
|
|
# bootanimation oneshot service
|
2015-12-02 22:29:20 +01:00
|
|
|
type bootanim, domain;
|
2013-12-11 21:17:53 +01:00
|
|
|
type bootanim_exec, exec_type, file_type;
|
|
|
|
|
|
|
|
init_daemon_domain(bootanim)
|
|
|
|
|
|
|
|
binder_use(bootanim)
|
|
|
|
binder_call(bootanim, surfaceflinger)
|
|
|
|
|
|
|
|
allow bootanim gpu_device:chr_file rw_file_perms;
|
2014-07-15 08:31:31 +02:00
|
|
|
|
|
|
|
# /oem access
|
|
|
|
allow bootanim oemfs:dir search;
|
2014-09-22 22:03:52 +02:00
|
|
|
allow bootanim oemfs:file r_file_perms;
|
2014-07-26 00:19:47 +02:00
|
|
|
|
2014-09-29 15:18:19 +02:00
|
|
|
allow bootanim audio_device:dir r_dir_perms;
|
|
|
|
allow bootanim audio_device:chr_file rw_file_perms;
|
2014-10-06 20:56:31 +02:00
|
|
|
|
2014-12-12 01:01:27 +01:00
|
|
|
allow bootanim surfaceflinger_service:service_manager find;
|
2015-12-02 22:29:20 +01:00
|
|
|
|
|
|
|
# For /acct/uid/*/tasks.
|
|
|
|
allow bootanim cgroup:dir { search write };
|
|
|
|
allow bootanim cgroup:file w_file_perms;
|
|
|
|
|
|
|
|
# Allow access to ion memory allocation device
|
|
|
|
allow bootanim ion_device:chr_file rw_file_perms;
|
|
|
|
|
|
|
|
# Read access to pseudo filesystems.
|
|
|
|
r_dir_file(bootanim, proc)
|
|
|
|
r_dir_file(bootanim, sysfs)
|
|
|
|
r_dir_file(bootanim, sysfs_devices_system_cpu)
|
|
|
|
r_dir_file(bootanim, cgroup)
|
|
|
|
allow bootanim proc_cpuinfo:file r_file_perms;
|
|
|
|
|
|
|
|
# System file accesses.
|
|
|
|
allow bootanim system_file:dir r_dir_perms;
|