Configs for profcollect system properties

Test: build
Bug: 79161490
Change-Id: I83362b2089a54c4dcbf8da5a7720da8529ba1e34
diff --git a/private/compat/30.0/30.0.ignore.cil b/private/compat/30.0/30.0.ignore.cil
index 4527066..15fdabe 100644
--- a/private/compat/30.0/30.0.ignore.cil
+++ b/private/compat/30.0/30.0.ignore.cil
@@ -10,6 +10,7 @@
     apex_info_file
     cgroup_v2
     debugfs_kprobes
+    device_config_profcollect_native_boot_prop
     device_state_service
     dmabuf_system_heap_device
     framework_watchdog_config_prop
diff --git a/private/flags_health_check.te b/private/flags_health_check.te
index 18dde09..b30ee6c 100644
--- a/private/flags_health_check.te
+++ b/private/flags_health_check.te
@@ -10,6 +10,7 @@
 set_prop(flags_health_check, device_config_netd_native_prop)
 set_prop(flags_health_check, device_config_activity_manager_native_boot_prop)
 set_prop(flags_health_check, device_config_media_native_prop)
+set_prop(flags_health_check, device_config_profcollect_native_boot_prop)
 set_prop(flags_health_check, device_config_storage_native_boot_prop)
 set_prop(flags_health_check, device_config_sys_traced_prop)
 set_prop(flags_health_check, device_config_window_manager_native_boot_prop)
diff --git a/private/profcollectd.te b/private/profcollectd.te
index 82cfad0..f1ba7a72 100644
--- a/private/profcollectd.te
+++ b/private/profcollectd.te
@@ -34,6 +34,9 @@
   # Allow profcollectd to ptrace.
   allow profcollectd self:global_capability_class_set sys_ptrace;
 
+  # Allow profcollectd to read its system properties.
+  get_prop(profcollectd, device_config_profcollect_native_boot_prop)
+
   # Allow profcollectd to publish a binder service and make binder calls.
   binder_use(profcollectd)
   add_service(profcollectd, profcollectd_service)
diff --git a/private/property.te b/private/property.te
index 18d94d2..80966dc 100644
--- a/private/property.te
+++ b/private/property.te
@@ -1,5 +1,6 @@
 # Properties used only in /system
 system_internal_prop(adbd_prop)
+system_internal_prop(device_config_profcollect_native_boot_prop)
 system_internal_prop(device_config_storage_native_boot_prop)
 system_internal_prop(device_config_sys_traced_prop)
 system_internal_prop(device_config_window_manager_native_boot_prop)
diff --git a/private/property_contexts b/private/property_contexts
index ac680a4..55842e8 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -213,6 +213,7 @@
 persist.device_config.media_native.          u:object_r:device_config_media_native_prop:s0
 persist.device_config.storage_native_boot.   u:object_r:device_config_storage_native_boot_prop:s0
 persist.device_config.window_manager_native_boot. u:object_r:device_config_window_manager_native_boot_prop:s0
+persist.device_config.profcollect_native_boot.    u:object_r:device_config_profcollect_native_boot_prop:s0
 persist.device_config.configuration. u:object_r:device_config_configuration_prop:s0
 
 # Properties that relate to legacy server configurable flags
diff --git a/private/system_server.te b/private/system_server.te
index 48c884c..104bd97 100644
--- a/private/system_server.te
+++ b/private/system_server.te
@@ -644,6 +644,7 @@
 set_prop(system_server, device_config_runtime_native_boot_prop)
 set_prop(system_server, device_config_runtime_native_prop)
 set_prop(system_server, device_config_media_native_prop)
+set_prop(system_server, device_config_profcollect_native_boot_prop)
 set_prop(system_server, device_config_storage_native_boot_prop)
 set_prop(system_server, device_config_sys_traced_prop)
 set_prop(system_server, device_config_window_manager_native_boot_prop)