Label /data/bootanim with bootanim_data_file.

Bug: 16529906
Test: /data/bootanim is labeled correctly. BootAnimation can access this
folder.

Change-Id: Ic6a438d7a139b4864c4795dcac613cb819a81631
This commit is contained in:
Josh Yang 2021-12-23 14:37:41 -08:00
parent 4f85138c08
commit 1d967dd697
3 changed files with 8 additions and 0 deletions

View file

@ -15,3 +15,6 @@ get_prop(bootanim, bootanim_config_prop)
# Allow updating boot animation status.
set_prop(bootanim, bootanim_system_prop)
# Allow accessing /data/bootanim
r_dir_file(bootanim, bootanim_data_file)

View file

@ -69,6 +69,9 @@ type virtualizationservice_data_file, file_type, data_file_type, core_data_file_
# /data/system/environ
type environ_system_data_file, file_type, data_file_type, core_data_file_type;
# /data/bootanim
type bootanim_data_file, file_type, data_file_type, core_data_file_type;
# /dev/kvm
type kvm_device, dev_type;

View file

@ -704,6 +704,8 @@
/data/incremental/MT_[^/]+/mount/.log u:object_r:incremental_control_file:s0
/data/incremental/MT_[^/]+/mount/.blocks_written u:object_r:incremental_control_file:s0
# Boot animation data
/data/bootanim(/.*)? u:object_r:bootanim_data_file:s0
#############################
# Expanded data files
#