Move camera config props to camera_config_prop
Bug: 155844385
Test: sepolicy_tests
Change-Id: Iebe81d9af48e68e6499272bd5815e959f5945567
diff --git a/private/compat/27.0/27.0.ignore.cil b/private/compat/27.0/27.0.ignore.cil
index 3a1fa58..f00f90a 100644
--- a/private/compat/27.0/27.0.ignore.cil
+++ b/private/compat/27.0/27.0.ignore.cil
@@ -29,6 +29,7 @@
bluetooth_a2dp_offload_prop
bpfloader
bpfloader_exec
+ camera_config_prop
cgroup_bpf
charger_exec
color_display_service
diff --git a/private/compat/30.0/30.0.cil b/private/compat/30.0/30.0.cil
index 5e4ac9c..48689f5 100644
--- a/private/compat/30.0/30.0.cil
+++ b/private/compat/30.0/30.0.cil
@@ -1343,7 +1343,10 @@
( exported2_system_prop
surfaceflinger_color_prop))
(typeattributeset exported2_vold_prop_30_0 (exported2_vold_prop vold_config_prop))
-(typeattributeset exported3_default_prop_30_0 (exported3_default_prop lmkd_config_prop))
+(typeattributeset exported3_default_prop_30_0
+ ( exported3_default_prop
+ camera_config_prop
+ lmkd_config_prop))
(typeattributeset exported3_radio_prop_30_0 (exported3_radio_prop))
(typeattributeset exported3_system_prop_30_0 (exported3_system_prop boot_status_prop))
(typeattributeset exported_audio_prop_30_0 (exported_audio_prop audio_config_prop))
diff --git a/private/coredomain.te b/private/coredomain.te
index de58a33..daaf3aa 100644
--- a/private/coredomain.te
+++ b/private/coredomain.te
@@ -1,6 +1,7 @@
get_prop(coredomain, pm_prop)
get_prop(coredomain, exported_pm_prop)
get_prop(coredomain, lmkd_config_prop)
+get_prop(coredomain, camera_config_prop)
full_treble_only(`
neverallow {
diff --git a/private/property_contexts b/private/property_contexts
index 0d26d4d..d7053b8 100644
--- a/private/property_contexts
+++ b/private/property_contexts
@@ -259,8 +259,12 @@
audio.offload.video u:object_r:audio_config_prop:s0 exact bool
audio.offload.min.duration.secs u:object_r:audio_config_prop:s0 exact int
-camera.disable_zsl_mode u:object_r:exported3_default_prop:s0 exact bool
-camera.fifo.disable u:object_r:exported3_default_prop:s0 exact int
+config.disable_cameraservice u:object_r:camera_config_prop:s0 exact bool
+
+camera.disable_zsl_mode u:object_r:camera_config_prop:s0 exact bool
+camera.fifo.disable u:object_r:camera_config_prop:s0 exact bool
+ro.camera.notify_nfc u:object_r:camera_config_prop:s0 exact bool
+ro.camera.enableLazyHal u:object_r:camera_config_prop:s0 exact bool
# Should always_debuggable be bool? It's checked against the string "1".
dalvik.vm.always_debuggable u:object_r:dalvik_config_prop:s0 exact int
@@ -381,9 +385,6 @@
ro.bt.bdaddr_path u:object_r:exported_bluetooth_prop:s0 exact string
-ro.camera.notify_nfc u:object_r:exported3_default_prop:s0 exact int
-ro.camera.enableLazyHal u:object_r:exported3_default_prop:s0 exact bool
-
ro.com.android.dataroaming u:object_r:exported3_default_prop:s0 exact bool
ro.com.android.prov_mobiledata u:object_r:exported3_default_prop:s0 exact bool
@@ -638,8 +639,6 @@
aaudio.mmap_policy u:object_r:exported_default_prop:s0 exact int
aaudio.wakeup_delay_usec u:object_r:exported_default_prop:s0 exact int
-config.disable_cameraservice u:object_r:exported_camera_prop:s0 exact bool
-
gsm.sim.operator.numeric u:object_r:exported_radio_prop:s0 exact string
media.mediadrmservice.enable u:object_r:exported_default_prop:s0 exact bool
diff --git a/public/property.te b/public/property.te
index b8b7d59..8ca80cf 100644
--- a/public/property.te
+++ b/public/property.te
@@ -100,6 +100,7 @@
# Properties which can be written only by vendor_init
system_vendor_config_prop(apk_verity_prop)
system_vendor_config_prop(audio_config_prop)
+system_vendor_config_prop(camera_config_prop)
system_vendor_config_prop(cpu_variant_prop)
system_vendor_config_prop(dalvik_config_prop)
system_vendor_config_prop(exported_camera_prop)