From faa961a5f5adf87c51d9bd44e9ac40f8cc2d1533 Mon Sep 17 00:00:00 2001 From: Inseob Kim Date: Tue, 18 Aug 2020 23:29:12 +0900 Subject: [PATCH] universal7885: sepolicy: Attach vendor_property_type to properties We are going to enforce that each property has an explicit owner, such as system, vendor, or product. This attaches vendor_property_type to properties defined under vendor sepolicy directories. Bug: 159097992 Test: m selinux_policy && boot device Change-Id: I33c40ca345365d8f01f43d3ce7f1f3434b1edfd5 Signed-off-by: SamarV-121 Signed-off-by: roynatech2544 --- .../sepolicy/vendor/property.te | 47 +++++++++---------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/universal7885-common/sepolicy/vendor/property.te b/universal7885-common/sepolicy/vendor/property.te index b558ecd..d00755c 100644 --- a/universal7885-common/sepolicy/vendor/property.te +++ b/universal7885-common/sepolicy/vendor/property.te @@ -1,26 +1,21 @@ -# modemloader -type modemloader_prop, property_type; -type camera_prop, property_type; - -type persist_rmnet_prop, property_type; -type persist_data_df_prop, property_type; -type persist_data_wda_prop, property_type; - -type vendor_camera_prop, property_type; -type vendor_factory_prop, property_type; -type vendor_gps_prop, property_type; -type vendor_nfc_prop, property_type; -type vendor_wlbtd_prop, property_type; -type vendor_wlan_prop, property_type; -type vendor_hwc_prop, property_type; -# property.te - -type vendor_cbd_prop, property_type; -type vendor_radio_prop, property_type; -type vendor_fastcharge_prop, property_type; -type vendor_wifi_prop, property_type; -type rild_prop, property_type; -# property.te -type vendor_secureos_prop, property_type; -type vendor_tzdaemon_prop, property_type; -type vendor_tztsdaemon_prop, property_type; +vendor_internal_prop(modemloader_prop) +vendor_internal_prop(camera_prop) +vendor_internal_prop(modemloader_prop) +vendor_internal_prop(persist_rmnet_prop) +vendor_internal_prop(persist_data_df_prop) +vendor_internal_prop(persist_data_wda_prop) +vendor_internal_prop(vendor_camera_prop) +vendor_internal_prop(vendor_factory_prop) +vendor_internal_prop(vendor_gps_prop) +vendor_internal_prop(vendor_nfc_prop) +vendor_internal_prop(vendor_wlbtd_prop) +vendor_internal_prop(vendor_wlan_prop) +vendor_internal_prop(vendor_hwc_prop) +vendor_internal_prop(vendor_cbd_prop) +vendor_internal_prop(vendor_radio_prop) +vendor_internal_prop(vendor_fastcharge_prop) +vendor_internal_prop(vendor_wifi_prop) +vendor_internal_prop(rild_prop) +vendor_internal_prop(vendor_secureos_prop) +vendor_internal_prop(vendor_tzdaemon_prop) +vendor_internal_prop(vendor_tztsdaemon_prop)