From ea5ec69b7975aa2419f48e8b974a482e12712ba8 Mon Sep 17 00:00:00 2001 From: Ravi Jain Date: Mon, 15 Apr 2024 03:49:41 +0000 Subject: [PATCH] touch: moving ical related sepolicies to independent folder Bug: 331139251 Test: Manually verify the result. Change-Id: I53b5c8eb73f1ce775ec83a06b43c0b4993f31e69 --- touch/gti/gti.mk | 1 + touch/gti/gti_dual.mk | 1 + touch/gti/ical/sepolicy/file_contexts | 1 + touch/gti/{ => ical}/sepolicy/gti_ical.te | 0 touch/gti/{ => ical}/sepolicy/property.te | 0 touch/gti/{ => ical}/sepolicy/property_contexts | 0 touch/gti/{ => ical}/sepolicy/vendor_init.te | 0 touch/gti/{ => ical}/sepolicy_gti_dual/property_contexts | 0 touch/gti/sepolicy/file_contexts | 1 - 9 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 touch/gti/ical/sepolicy/file_contexts rename touch/gti/{ => ical}/sepolicy/gti_ical.te (100%) rename touch/gti/{ => ical}/sepolicy/property.te (100%) rename touch/gti/{ => ical}/sepolicy/property_contexts (100%) rename touch/gti/{ => ical}/sepolicy/vendor_init.te (100%) rename touch/gti/{ => ical}/sepolicy_gti_dual/property_contexts (100%) diff --git a/touch/gti/gti.mk b/touch/gti/gti.mk index a2c7cf7..2aab821 100644 --- a/touch/gti/gti.mk +++ b/touch/gti/gti.mk @@ -1,4 +1,5 @@ BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/sepolicy +BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/ical/sepolicy PRODUCT_PACKAGES += dump_gti0.sh PRODUCT_PACKAGES += touch_gti_ical diff --git a/touch/gti/gti_dual.mk b/touch/gti/gti_dual.mk index f56645d..d6b7602 100644 --- a/touch/gti/gti_dual.mk +++ b/touch/gti/gti_dual.mk @@ -1,5 +1,6 @@ include device/google/gs-common/touch/gti/gti.mk BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/sepolicy_gti_dual +BOARD_VENDOR_SEPOLICY_DIRS += device/google/gs-common/touch/gti/ical/sepolicy_gti_dual PRODUCT_PACKAGES += dump_gti1.sh diff --git a/touch/gti/ical/sepolicy/file_contexts b/touch/gti/ical/sepolicy/file_contexts new file mode 100644 index 0000000..9bd59c3 --- /dev/null +++ b/touch/gti/ical/sepolicy/file_contexts @@ -0,0 +1 @@ +/vendor/bin/touch_gti_ical u:object_r:gti_ical_exec:s0 diff --git a/touch/gti/sepolicy/gti_ical.te b/touch/gti/ical/sepolicy/gti_ical.te similarity index 100% rename from touch/gti/sepolicy/gti_ical.te rename to touch/gti/ical/sepolicy/gti_ical.te diff --git a/touch/gti/sepolicy/property.te b/touch/gti/ical/sepolicy/property.te similarity index 100% rename from touch/gti/sepolicy/property.te rename to touch/gti/ical/sepolicy/property.te diff --git a/touch/gti/sepolicy/property_contexts b/touch/gti/ical/sepolicy/property_contexts similarity index 100% rename from touch/gti/sepolicy/property_contexts rename to touch/gti/ical/sepolicy/property_contexts diff --git a/touch/gti/sepolicy/vendor_init.te b/touch/gti/ical/sepolicy/vendor_init.te similarity index 100% rename from touch/gti/sepolicy/vendor_init.te rename to touch/gti/ical/sepolicy/vendor_init.te diff --git a/touch/gti/sepolicy_gti_dual/property_contexts b/touch/gti/ical/sepolicy_gti_dual/property_contexts similarity index 100% rename from touch/gti/sepolicy_gti_dual/property_contexts rename to touch/gti/ical/sepolicy_gti_dual/property_contexts diff --git a/touch/gti/sepolicy/file_contexts b/touch/gti/sepolicy/file_contexts index 37e3733..2fce7f5 100644 --- a/touch/gti/sepolicy/file_contexts +++ b/touch/gti/sepolicy/file_contexts @@ -1,2 +1 @@ /vendor/bin/dump/dump_gti0\.sh u:object_r:dump_gti_exec:s0 -/vendor/bin/touch_gti_ical u:object_r:gti_ical_exec:s0