Prefetch: Add sepolicy to control prefetch properties
1: Add prefetch tunable property
2: Default path to store the prefetch record is in /metadata/prefetch/
3: Add policy to control the service
4: Allow init to start/stop the service
Bug: 362507272
Test: Test prefetch record/replay with enforcing mode
Change-Id: I55cbf4f2110da298a8d7df52daad08eaedebd061
Signed-off-by: Akilesh Kailash <akailash@google.com>
diff --git a/private/file_contexts b/private/file_contexts
index 2350a7c..6970864 100644
--- a/private/file_contexts
+++ b/private/file_contexts
@@ -414,6 +414,7 @@
/system/bin/bert_collector u:object_r:bert_collector_exec:s0
/system/bin/linux_vm_setup u:object_r:linux_vm_setup_exec:s0
/system/bin/tradeinmode u:object_r:tradeinmode_exec:s0
+/system/bin/prefetch u:object_r:prefetch_exec:s0
#############################
# Vendor files
@@ -898,6 +899,7 @@
/metadata/aconfig/flags(/.*)? u:object_r:aconfig_storage_flags_metadata_file:s0
/metadata/aconfig_test_missions(/.*)? u:object_r:aconfig_test_mission_files:s0
/metadata/tradeinmode(/.*)? u:object_r:tradeinmode_metadata_file:s0
+/metadata/prefetch(/.*)? u:object_r:prefetch_metadata_file:s0
############################
# mount point for ota metadata