From a6c741e3a4329eab54797351c202ab0910ae6d33 Mon Sep 17 00:00:00 2001 From: Lei Ju Date: Wed, 17 Jan 2024 11:47:57 -0800 Subject: [PATCH] Introduce a property for multiclient HAL Test: set the property in .rc file and run adb shell getprop to verify the property is set. Bug: 248615564 Change-Id: I18a52c2a29df2cc5bad73d49e39c4e6ee1381106 --- chre/sepolicy/property.te | 1 + chre/sepolicy/property_contexts | 1 + chre/sepolicy/vendor_init.te | 1 + 3 files changed, 3 insertions(+) create mode 100644 chre/sepolicy/property.te create mode 100644 chre/sepolicy/property_contexts create mode 100644 chre/sepolicy/vendor_init.te diff --git a/chre/sepolicy/property.te b/chre/sepolicy/property.te new file mode 100644 index 0000000..f2a98eb --- /dev/null +++ b/chre/sepolicy/property.te @@ -0,0 +1 @@ +vendor_internal_prop(vendor_chre_hal_prop) \ No newline at end of file diff --git a/chre/sepolicy/property_contexts b/chre/sepolicy/property_contexts new file mode 100644 index 0000000..f3d3fd8 --- /dev/null +++ b/chre/sepolicy/property_contexts @@ -0,0 +1 @@ +vendor.chre.multiclient_hal u:object_r:vendor_chre_hal_prop:s0 \ No newline at end of file diff --git a/chre/sepolicy/vendor_init.te b/chre/sepolicy/vendor_init.te new file mode 100644 index 0000000..d1a70fe --- /dev/null +++ b/chre/sepolicy/vendor_init.te @@ -0,0 +1 @@ +set_prop(vendor_init, vendor_chre_hal_prop) \ No newline at end of file